Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: race condition for search node id (#1546)

gbirman1606334055e1
diff --git a/js/app/packages/block-md/component/MarkdownEditor.tsx b/js/app/packages/block-md/component/MarkdownEditor.tsx
index fcf7a49da6..1cdf56ce61 100644
--- a/js/app/packages/block-md/component/MarkdownEditor.tsx
+++ b/js/app/packages/block-md/component/MarkdownEditor.tsx
@@ -454,7 +454,7 @@ export function MarkdownEditor(props: { autoFocusOnMount?: boolean } = {}) {
createEffect(() => {
const highlightNodeId_ = highlightNodeId();
- if (highlightNodeId_ && editorReady()) {
+ if (highlightNodeId_ && locationReady()) {
setHighlightNodeId(undefined);
const found = editor.dispatchCommand(
GO_TO_NODE_ID_COMMAND,