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

Fix (Draw): Persist when updating existing elements #9919

Merged
merged 1 commit into from Jul 31, 2023

Conversation

sprocketc
Copy link
Collaborator

It looks like (not= elements->clj @*elements)) returns false when we update an existing shape. To reproduce this, create a rectangle, move it to a different location and reload the page. The new position is not persisted. To make sure that the equality check is now working as intended, open the dev tools and ensure that persist is triggered when we transform existing elements, but not when we change the selected elements.

Resolves #8706

Copy link
Collaborator

@andelf andelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@Bad3r Bad3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

Copy link
Collaborator

@logseq-cldwalker logseq-cldwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sprocketc Works great! 🐛 ⚡

@logseq-cldwalker logseq-cldwalker merged commit cf6333d into master Jul 31, 2023
7 checks passed
@logseq-cldwalker logseq-cldwalker deleted the fix/excalidraw-persist branch July 31, 2023 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to drawing on are getting lost after restart
4 participants