memphis-iis / mofacts

8 stars 1 forks source link

default doesn't work (works when set) #1453

Closed imrryr closed 8 months ago

imrryr commented 8 months ago

This code fails

  Session.set('loginPrompt', tdf.content.tdfs.tutor.setspec.uiSettings.experimentLoginText || "Amazon Turk ID");

I get this error when not set

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'experimentLoginText') at o.action (router.js:158:76) at middleware_stack.js:251:1 at o. (dynamics_browser.js:51:1) at n.hooks.loading (hooks.js:26:1) at middleware_stack.js:251:1 at dynamicsbrowser.js:51:1 at .append.where (route_controller_client.js:215:1) at middleware_stack.js:251:1 at dynamicsbrowser.js:51:1 at .append.where (route_controller_client.js:202:1) at middleware_stack.js:251:1 at dynamics_browser.js:51:1 at e.dispatch (middleware_stack.js:275:1) at e._runRoute (route_controller_client.js:241:1) at r.dispatch (route.js:156:1) at o.n [as route] (route.js:13:1)