diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index 49ad47908..46b4ad914 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -245,7 +245,7 @@ exports.padeditbar = { } catch (err) { cbErr = err || new Error(err); } finally { - if (cb) cb(cbErr); + if (cb) Promise.resolve().then(() => cb(cbErr)); } }, setSyncStatus: (status) => {