We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9af82 commit c9045cdCopy full SHA for c9045cd
client/packages/lowcoder/src/pages/editor/AppEditor.tsx
@@ -115,7 +115,7 @@ const AppEditor = React.memo(() => {
115
if (currentUser && application) {
116
const lastEditedAt = dayjs(application?.lastEditedAt);
117
const lastEditedDiff = dayjs().diff(lastEditedAt, 'minutes');
118
- const shouldBlockEditing = currentUser.id !== application?.editingUserId && lastEditedDiff < 3;
+ const shouldBlockEditing = Boolean(application?.editingUserId) && currentUser.id !== application?.editingUserId && lastEditedDiff < 3;
119
setBlockEditing(shouldBlockEditing);
120
}
121
}, [application, currentUser]);
0 commit comments