From b085a00dfed5acdf33b694f61a4e4e1e247d085a Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Thu, 19 Oct 2023 10:17:35 +0000 Subject: [PATCH] deploy: b9a094c694f1ae8f4eb66ab8517e8b84c16d9521 --- MystEditor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index b070043..31afd37 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -26408,10 +26408,8 @@ const Kye = Ce.div.withConfig({ c.enabled && (f.disconnect(), g.destroy()), w.destroy(); }; }, []), Gs(() => { - if (!c.enabled) - return; - const y = p.toString().length == 0 && f.awareness.getStates().size == 1 && f.firstUser && m; - p.toString().length != 0 && e(p.toString()), y ? (console.log("You are the first user in this document. Initiating..."), a.current.dispatch({ + const y = c.enabled && p.toString().length == 0 && f.awareness.getStates().size == 1 && f.firstUser && m; + p && p.toString().length != 0 && e(p.toString()), y ? (console.log("You are the first user in this document. Initiating..."), a.current.dispatch({ changes: { from: 0, to: a.current.state.doc.length,