Skip to content

Commit

Permalink
Update lib-content-view.js
Browse files Browse the repository at this point in the history
  • Loading branch information
孙永强 committed Nov 25, 2024
1 parent 29ecca8 commit 63acdd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/pages/lib-content-view/lib-content-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,16 @@ class LibContentView extends React.Component {
}
this.updateDirent(dirent, 'is_locked', true);
this.updateDirent(dirent, 'locked_by_me', true);
this.updateDirent(dirent, 'lock_owner_name', data.content.lock_user[0]);
let lockName = data.content.lock_user.split('@');
this.updateDirent(dirent, 'lock_owner_name', lockName);
} else if (data.content.change_event === 'unlocked') {
this.updateDirent(dirent, 'is_locked', false);
this.updateDirent(dirent, 'locked_by_me', false);
this.updateDirent(dirent, 'lock_owner_name', '');
}
if (notifRouter === '') {
this.loadDirentList('/')

Check warning on line 182 in frontend/src/pages/lib-content-view/lib-content-view.js

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
}
}
}
};
Expand Down

0 comments on commit 63acdd5

Please sign in to comment.