Fix multiple thoughts import overwrites siblings.#885
Fix multiple thoughts import overwrites siblings.#885raineorshine merged 3 commits intocybersemics:devfrom
Conversation
fix initialState for importHTML
|
@raineorshine There was a issue with the test you provided earlier. Thoughts updates needed to be merged with the previous thoughts. And the reason for overwriting siblings was that However I noticed that the tree is not re-rendering after import even in |
Yes, did you see the comment where pointed it out in the original issue? Anyway, thanks for fixing it!
Excellent, thanks!
No, we definitely want it to re-render after import. |
| const childrenUpdates = | ||
| contextIndexUpdates[contextEncoded]?.children || | ||
| contextIndex[contextEncoded]?.children || [] |
There was a problem hiding this comment.
@shresthabijay We can clean this up a bit with the optional chaining operator.
fixes #832