mirror of https://github.com/status-im/codimd.git
Fix potential error
This commit is contained in:
parent
a090008d4a
commit
c9f5cd49b0
|
@ -2335,7 +2335,7 @@ var addStyleRule = (function () {
|
|||
}());
|
||||
function updateAuthorshipInner() {
|
||||
// ignore when ot not synced yet
|
||||
if (Object.keys(cmClient.state).length > 0) return;
|
||||
if (cmClient && Object.keys(cmClient.state).length > 0) return;
|
||||
authorMarks = {};
|
||||
for (var i = 0; i < authorship.length; i++) {
|
||||
var atom = authorship[i];
|
||||
|
|
Loading…
Reference in New Issue