mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 11:43:59 -05:00
Fix updatePermission before loaded might cause duplicate view rendering
This commit is contained in:
parent
cca567453d
commit
fe249c01f5
1 changed files with 1 additions and 1 deletions
|
@ -1734,7 +1734,7 @@ function emitPermission(_permission) {
|
||||||
function updatePermission(newPermission) {
|
function updatePermission(newPermission) {
|
||||||
if (permission != newPermission) {
|
if (permission != newPermission) {
|
||||||
permission = newPermission;
|
permission = newPermission;
|
||||||
refreshView();
|
if (loaded) refreshView();
|
||||||
}
|
}
|
||||||
var label = null;
|
var label = null;
|
||||||
var title = null;
|
var title = null;
|
||||||
|
|
Loading…
Reference in a new issue