Skip to content

Conversation

tecc
Copy link
Member

@tecc tecc commented Dec 22, 2022

Changes aimed to fix #158.

List of main changes:

  • TreeActions.cleanTreeModel and TreeActions.cleanItemModel have been created. They fix the structure of their respective models (if possible), or otherwise throw an error. There should probably be better error handling, but this is the quickest fix.
  • /api/tree now always returns a cleaned tree.

tree-clean-utils: `TreeActions.cleanTreeModel` and `TreeActions.cleanItemModel` have been created. They simply fix the structure of their respective models.
/api/tree: /api/tree now always returns a cleaned tree.
@tecc tecc marked this pull request as ready for review December 23, 2022 17:23
@tecc tecc merged commit 4e0ddbe into main Dec 27, 2022
@tecc tecc deleted the fix/158-corrupted-tree branch December 27, 2022 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Next.JS client side exception

1 participant