fix: update appdefinition to editorstore in viewert (#9297)

This commit is contained in:
Johnson Cherian 2024-04-05 11:54:49 +05:30 committed by GitHub
parent 061636d025
commit f3cb2a04b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,6 +96,10 @@ class ViewerComponent extends React.Component {
appDefinition: { ...appDefData },
pages: appDefData.pages,
});
useEditorStore.getState().actions.updateEditorState({
appDefinition: { ...appDefData },
});
};
setStateForContainer = async (data, appVersionId) => {