AutomaApp / automa

A browser extension for automating your browser by connecting blocks
https://www.automa.site
Other
10.72k stars 1.09k forks source link

[High Priority] Replacing table from JavaScript block mutilates the stored table data #1760

Open MrChrisRodriguez opened 2 weeks ago

MrChrisRodriguez commented 2 weeks ago

Describe the bug Writing an array of objects to a table from a JavaScript block is storing data that's different from what was pushed. This makes the table and any blocks that depend on it, like Google sheets, useless.

And is particularly problematic because there's no error thrown -- the objects stored in the table are just different which could lead to unexpected side effects.

To Reproduce Steps to reproduce the behavior:

  1. Add a JavaScript block.
  2. Create an array of objects.
  3. Modify the object at array index 1.
  4. Replace the table using automaNextBlock
  5. Look at the table.

The object you pushed and the data in the table will be different.

Expected behavior The object pushed and the data in the table should be the same.

Screenshots Here's a video with audio overlay.

Desktop (please complete the following information):