Sanity: Split panes cause duplicate block content

Created on 12 Feb 2020  路  2Comments  路  Source: sanity-io/sanity

Describe the bug

If I add a paragraph to the block content with 3 split panes open. The paragraph would be inserted into the array 3 times with the same _key. Even if the other split panes are on a different view.

To Reproduce

  1. Edit a document with block content
  2. Split the view using the "Split pane right" button
  3. Add a new paragraph to the block content
  4. Inspect the document to see the duplicate paragraphs

Expected behavior

The paragraph should only be added once to the document.

Which versions of Sanity are you using?

1.148.0

What operating system are you using?

Windows 10

Which versions of Node.js / npm are you running?

6.13.7
v12.12.0

Most helpful comment

Hi @jmswrnr, thanks again for reporting. This should have been fixed in the latest release (v1.148.2). Let us know if it's still an issue.

All 2 comments

Thanks for reporting! We're investigating the issue. Stay tuned!

Hi @jmswrnr, thanks again for reporting. This should have been fixed in the latest release (v1.148.2). Let us know if it's still an issue.

Was this page helpful?
0 / 5 - 0 ratings