diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index c0e9e716091..b4863c1bc68 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -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('/') + } } } };