Skip to content

Commit

Permalink
deploy: b9a094c
Browse files Browse the repository at this point in the history
  • Loading branch information
antmicrobot committed Oct 19, 2023
1 parent cd1f7a2 commit b085a00
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MystEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b085a00

Please sign in to comment.