Skip to content

Commit 00d8aaf

Browse files
committed
fix: wrong parent property in summary
1 parent 8f49aaa commit 00d8aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interact.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const selectParent = function (this: MindElixirInstance) {
134134
export const getDataString = function (this: MindElixirInstance) {
135135
const data = collectData(this)
136136
return JSON.stringify(data, (k, v) => {
137-
if (k === 'parent') return undefined
137+
if (k === 'parent' && typeof v !== 'string') return undefined
138138
if (k === 'from') return v.nodeObj.id
139139
if (k === 'to') return v.nodeObj.id
140140
return v

0 commit comments

Comments
 (0)