File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
client/packages/lowcoder/src/pages/editor Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ const AppEditor = React.memo(() => {
9292
9393 // Set global settings with cleanup
9494 useEffect ( ( ) => {
95- setGlobalSettings ( { applicationId : selectors . applicationId , isViewMode : selectors . paramViewMode === "view" || selectors . paramViewMode === "view_marketplace" } ) ;
95+ setGlobalSettings ( {
96+ applicationId : selectors . applicationId ,
97+ isViewMode : selectors . paramViewMode !== "edit"
98+ } ) ;
9699 return ( ) => {
97100 clearGlobalSettings ( ) ;
98101 } ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const AppEditorPublic = React.memo(() => {
8383 const [ blockEditing , setBlockEditing ] = useState < boolean > ( true ) ;
8484 const [ fetchingAppDetails , setFetchingAppDetails ] = useState < boolean > ( false ) ;
8585
86- setGlobalSettings ( { applicationId, isViewMode : paramViewMode === "view " } ) ;
86+ setGlobalSettings ( { applicationId, isViewMode : paramViewMode !== "edit " } ) ;
8787
8888 if ( ! firstRendered . current ) {
8989 perfClear ( ) ;
You can’t perform that action at this time.
0 commit comments