Skip to content

Commit

Permalink
fix(chrome devtool): graph has symbol value, but devtool dont show (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
workkk98 authored Jul 16, 2024
1 parent 0932a11 commit 37d437d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion devtools/chrome-extension/src/extension/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ const send = ({
source: '@formily-devtools-inject-script',
type,
id,
graph: form && JSON.stringify(graph),
graph:
form &&
JSON.stringify(graph, (key, value) => {
if (typeof value === 'symbol') {
return value.toString()
}
return value
}),
},
'*'
)
Expand Down

0 comments on commit 37d437d

Please sign in to comment.