Menu

#5598 fix: fill field_settings on creating linked view

open
nobody
None
2024-06-21
2024-06-21
Anonymous
No

Originally created by: zoli

  1. Create a grid
  2. create a board view from that grid
  3. Change group field of the board view

You will see that the cards are empty and if you click on the card it throws an error.

The problem is the field_settings in field_infos are empty. The root cause is that on creating linked view it doesn't add fields settings from the view we are linking to.
I fixed this by getting field settings from the parent view (the one we are linking new view) and adding it to the new view that is getting created.

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB