put back waiting for sync after frontend API backend request

This commit is contained in:
zadam
2021-02-22 22:43:54 +01:00
parent 90c6852423
commit 93d55b3e7b
2 changed files with 3 additions and 4 deletions

View File

@@ -166,9 +166,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain
}, "script");
if (ret.success) {
// we used to wait for max entity change here returned from the response
// but it's too easy to end up in infinite cycle when this is triggered as a consequence of
// sync event (typically from custom widget)
await ws.waitForMaxKnownEntityChangeId();
return ret.executionResult;
}