fastn-stack / fastn

🚧 (Alpha stage software) fastn - better way to build websites 🚧
https://fastn.com
GNU Affero General Public License v3.0
463 stars 36 forks source link

Fix: ftd.get_value in ftd.js #1916

Closed Arpita-Jaiswal closed 1 month ago

Arpita-Jaiswal commented 1 month ago

This PR fixes the ftd.get_value function that is used to fetch the value of global variables. Earlier the following code was not working:

ftd.get_value("<module-name>#john-doe")

where john-doe variable is a RecordInstance object with following value:

{"name": "John Doe", "age": 30}

This PR improves the handling of mutable values like RecordInstance, Mutable and MutableList.