We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0f02d commit b909062Copy full SHA for b909062
src/utils/dom.ts
@@ -9,7 +9,7 @@ const $d = document
9
export const findEle = (id: string, instance?: MindElixirInstance) => {
10
const scope = instance ? instance.mindElixirBox : $d
11
const ele = scope.querySelector<Topic>(`[data-nodeid=me${id}]`)
12
- if (!ele) throw new Error(`findEle: ${id} not found`)
+ if (!ele) throw new Error(`FindEle: Node ${id} not found, maybe it's collapsed.`)
13
return ele
14
}
15
0 commit comments