mirror of https://github.com/status-im/codimd.git
Fix updatePermission before loaded might cause duplicate view rendering
This commit is contained in:
parent
cca567453d
commit
fe249c01f5
|
@ -1734,7 +1734,7 @@ function emitPermission(_permission) {
|
|||
function updatePermission(newPermission) {
|
||||
if (permission != newPermission) {
|
||||
permission = newPermission;
|
||||
refreshView();
|
||||
if (loaded) refreshView();
|
||||
}
|
||||
var label = null;
|
||||
var title = null;
|
||||
|
|
Loading…
Reference in New Issue