Question
Accenture
AU
Last activity: 29 Aug 2022 1:37 EDT
How to recover from Cosmos React View corruption
While working with the Cosmos React UI in App Studio we came across an interesting issue. The issue is that if a attribute (property) used in a view is deleted/updated then the view gets corrupted.
The view no longer opens up from the App studio for the developer to fix the error there's only a cryptic error message "Something went wrong." in the app studio
The browser console points is a little more help indicates the following error
TypeError: Cannot read properties of undefined (reading 'embeddedTypeKey')
at Mi (19008.d56ae9e2.js:1:151444)
at 19008.d56ae9e2.js:1:153088
at Array.map (<anonymous>)
at 19008.d56ae9e2.js:1:153039
at Object.useMemo (react_root.23f82a81.js:2:244213)
at t.useMemo (react_root.23f82a81.js:2:322423)
at Zi (19008.d56ae9e2.js:1:153016)
at Ki (react_root.23f82a81.js:2:239361)
at kl (react_root.23f82a81.js:2:285411)
at gs (react_root.23f82a81.js:2:278153)
Has anyone come across a way to fix this issue ?