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 findEditingImage #2794

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Fix findEditingImage #2794

merged 1 commit into from
Sep 12, 2024

Conversation

juliaroldi
Copy link
Contributor

@juliaroldi juliaroldi commented Sep 11, 2024

When image does not have id and the imageId parameter does not exist the findEditingImage was return the image as editing image, what is not correct. To avoid that issue, only compare the imageId and the image id, if imageId parameter exists.

To repro the bug:

  1. Paste two images
  2. Click at the second one
  3. Press a key
  4. The first image will be replaced by the second.

Before:

imageIdBug

After:

imageIdBugFix

@juliaroldi juliaroldi merged commit 1c20684 into master Sep 12, 2024
7 checks passed
@juliaroldi juliaroldi deleted the u/juliaroldi/pasted-images branch September 12, 2024 21:32
juliaroldi added a commit that referenced this pull request Sep 12, 2024
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.

2 participants