Skip to content

Commit

Permalink
fix: wrong parent property in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Sep 17, 2023
1 parent 8f49aaa commit 00d8aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const selectParent = function (this: MindElixirInstance) {
export const getDataString = function (this: MindElixirInstance) {
const data = collectData(this)
return JSON.stringify(data, (k, v) => {
if (k === 'parent') return undefined
if (k === 'parent' && typeof v !== 'string') return undefined
if (k === 'from') return v.nodeObj.id
if (k === 'to') return v.nodeObj.id
return v
Expand Down

0 comments on commit 00d8aaf

Please sign in to comment.