This commit is contained in:
parent
1138629405
commit
6ff0473c41
1 changed files with 5 additions and 0 deletions
|
@ -201,6 +201,11 @@ export const setDefRefCount = (data: {
|
|||
attrElement.innerHTML = `<div class="protyle-attr--refcount popover__block">${data.refCount}</div>${Constants.ZWSP}`;
|
||||
}
|
||||
}
|
||||
if (data.refCount === 0) {
|
||||
item.removeAttribute("refcount")
|
||||
} else {
|
||||
item.setAttribute("refcount", data.refCount.toString())
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue