Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty table cells are removed during dataset export #7511

Open
orjanmjelde-kantega opened this issue Sep 16, 2024 · 0 comments
Open

Empty table cells are removed during dataset export #7511

orjanmjelde-kantega opened this issue Sep 16, 2024 · 0 comments

Comments

@orjanmjelde-kantega
Copy link

If you find a security vulnerability, do NOT open an issue. Email security@sanity.io instead.

Describe the bug
We are observing that empty table cells are being removed when datasets are exported. If we insert a space-character (or any other character) in the cells, the tables structure is retained through an export. This seems to be the same bug that was reported earlier in ticket #2051. The same bug has also been reported for the table plugin sanity-io/table#33.

To Reproduce
Steps to reproduce the behavior:

  • Create a table in a document
  • Fill table with content, but leave one or more table cells empty (no characters in the cells) and publish the document
  • Inspect document and verify correct table structure
  • Export dataset
  • Either re-import dataset and verify structure, or unpack dataset archive and verify in the export file that the table structure has changed.

Expected behavior
Expect table structure to be retained through export/import of dataset.

Which versions of Sanity are you using?

@sanity/cli (global) 3.54.0 (latest: 3.57.3)
@sanity/cli 3.54.0 (latest: 3.57.3)
@sanity/icons 3.3.1 (latest: 3.4.0)
@sanity/locale-nb-no 1.1.12 (latest: 1.1.13)
@sanity/preview-kit 5.1.0 (up to date)
@sanity/table 1.1.2 (up to date)
@sanity/uuid 3.0.2 (up to date)
@sanity/vision 3.54.0 (latest: 3.57.3)
@sanity/webhook 4.0.4 (up to date)
sanity 3.54.0 (latest: 3.57.3)

What operating system are you using?
Linux

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

10.8.3
v22.6.0

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant