Skip to content

Commit

Permalink
fix: stringify message to post parant
Browse files Browse the repository at this point in the history
  • Loading branch information
dadiorchen committed Jan 21, 2024
1 parent 6f26664 commit bb6d6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function MapComponent() {
log.warn('click tree:', tree);
if (window.parent) {
log.warn('DEMO:ok message parent');
window.parent.postMessage(tree, '*');
window.parent.postMessage(JSON.stringify(tree), '*');
}

const wholeTree = await getTreeById(tree.id).catch((err) => log.warn(err));
Expand Down

0 comments on commit bb6d6d8

Please sign in to comment.