Error saving page with Server Side Expression

Hi, I get this error when saving my main layout page with this expression:

<link rel="stylesheet" href="<%=_('$_SESSION.theme')%>" />

The error:
ReferenceError: refreshActionTreeMeta is not defined at Object.popupComplete [as callback] (file:///C:/Users/trans/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/UI/dmxAppConnect/dmxAppConnect_utils.js:2221:13) at Object.dmxDWApiBridge.applyCallback (file:///C:/Users/trans/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:8:9509) at EventEmitter.<anonymous> (file:///C:/Users/trans/AppData/Local/Wappler/resources/app/Shared/DMXzone/dmxAppCreator/dmxDWApiBridge/dmxNWApiBridge.js:8:25287) at Object.onceWrapper (events.js:422:26) at EventEmitter.emit (events.js:315:20) at Object.onMessage (electron/js2c/renderer_init.js:93:1117)

What I want to achieve? As you can see, I want to make a website with changeable theme, so I dynamically set the href to the selected bootswatch css. Everything works fine so far, I can achieve what I need except I’m not able to save the project in Wappler. I have to edit the code outside of Wappler because I’m getting that error every time on saving the project with the code.

What’s wrong or is there better solution to achieve it without error? Thank you.

Community Page
Last updated: