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(() => {
92
92
93
93
// Set global settings with cleanup
94
94
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
+ } ) ;
96
99
return ( ) => {
97
100
clearGlobalSettings ( ) ;
98
101
} ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ const AppEditorPublic = React.memo(() => {
83
83
const [ blockEditing , setBlockEditing ] = useState < boolean > ( true ) ;
84
84
const [ fetchingAppDetails , setFetchingAppDetails ] = useState < boolean > ( false ) ;
85
85
86
- setGlobalSettings ( { applicationId, isViewMode : paramViewMode === "view " } ) ;
86
+ setGlobalSettings ( { applicationId, isViewMode : paramViewMode !== "edit " } ) ;
87
87
88
88
if ( ! firstRendered . current ) {
89
89
perfClear ( ) ;
You can’t perform that action at this time.
0 commit comments