Skip to content

Commit

Permalink
fixing json parse bug/issue in cell data to send to devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrasner committed Jun 23, 2023
1 parent 3d1ceff commit bf7ba18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions object_database/web/content/src/CellHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ class CellHandler {
const nodeId = event.data.nodeId;
// the cell objet can't be cloned and sent over
// the window message API as is
let cell = this.activeCells[nodeId];
cell = JSON.parse(JSON.stringify(cell));
const cell = this.activeCells[nodeId];
const dataToSend = cell.props // TODO;
const msg = {
status: "info",
nodeId: nodeId,
data: cell
data: dataToSend
}
this.sendMessageToDevtools(msg);

Expand Down

0 comments on commit bf7ba18

Please sign in to comment.