Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 46933e4

Browse files
committed
fix edit mode util
1 parent 7dc8e77 commit 46933e4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎client/packages/lowcoder/src/pages/editor/AppEditor.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
};

‎client/packages/lowcoder/src/pages/editor/AppEditorPublic.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /