File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ export const DefaultEditView: React.FC = () => {
319
319
// Unlock the document only if we're actually navigating away from the document
320
320
if ( documentId && documentIsLocked && ! isStayingWithinDocument ) {
321
321
// Check if this user is still the current editor
322
- if ( documentLockStateRef . current ?. user ?. id === user . id ) {
322
+ if ( documentLockStateRef . current ?. user ?. id === user ? .id ) {
323
323
void unlockDocument ( id , collectionSlug ?? globalSlug )
324
324
setDocumentIsLocked ( false )
325
325
setCurrentEditor ( null )
@@ -333,7 +333,7 @@ export const DefaultEditView: React.FC = () => {
333
333
globalSlug ,
334
334
id ,
335
335
unlockDocument ,
336
- user . id ,
336
+ user ,
337
337
setCurrentEditor ,
338
338
isLockingEnabled ,
339
339
documentIsLocked ,
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ const PreviewView: React.FC<Props> = ({
258
258
// Unlock the document only if we're actually navigating away from the document
259
259
if ( documentId && documentIsLocked && ! isStayingWithinDocument ) {
260
260
// Check if this user is still the current editor
261
- if ( documentLockStateRef . current ?. user ?. id === user . id ) {
261
+ if ( documentLockStateRef . current ?. user ?. id === user ? .id ) {
262
262
void unlockDocument ( id , collectionSlug ?? globalSlug )
263
263
setDocumentIsLocked ( false )
264
264
setCurrentEditor ( null )
@@ -272,7 +272,7 @@ const PreviewView: React.FC<Props> = ({
272
272
globalSlug ,
273
273
id ,
274
274
unlockDocument ,
275
- user . id ,
275
+ user ,
276
276
setCurrentEditor ,
277
277
isLockingEnabled ,
278
278
documentIsLocked ,
You can’t perform that action at this time.
0 commit comments