Skip to content

Commit c9045cd

Browse files
hotfix: editing blocked for new apps
1 parent 1c9af82 commit c9045cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const AppEditor = React.memo(() => {
115115
if (currentUser && application) {
116116
const lastEditedAt = dayjs(application?.lastEditedAt);
117117
const lastEditedDiff = dayjs().diff(lastEditedAt, 'minutes');
118-
const shouldBlockEditing = currentUser.id !== application?.editingUserId && lastEditedDiff < 3;
118+
const shouldBlockEditing = Boolean(application?.editingUserId) && currentUser.id !== application?.editingUserId && lastEditedDiff < 3;
119119
setBlockEditing(shouldBlockEditing);
120120
}
121121
}, [application, currentUser]);

0 commit comments

Comments
 (0)