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

Editor don't clear saved features when image is added #1787

Closed
johnnyblasta opened this issue Jun 19, 2023 · 0 comments · Fixed by #1768
Closed

Editor don't clear saved features when image is added #1787

johnnyblasta opened this issue Jun 19, 2023 · 0 comments · Fixed by #1768

Comments

@johnnyblasta
Copy link
Collaborator

Describe the bug
When using the editor control and have a attribute that is an image and uses the autosave property. The feature is saved with the image when clicking the save button. When continueing to add more new features with images the previously added feature with image is still recognized as changed although noting has changed with it, resulting in two update transacions are sent to the server, both the new and the previosluy added that hasn't changed. When this happens for all consecutive features it starts to build up in memory and the number of transactions to the server.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a editor control with an image attribute and autosave
  2. Open the developer mode i the web browser and network tab
  3. Add a feature with image, noticing 1 update transaction is sent
  4. Add another feature with image, noticing 2 update transaction is sent
  5. Add another feature with image, noticing 3 update transaction is sent

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Three update transaction are sent after adding the third feature, although noting ha changed with the two previously added features
image

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 a pull request may close this issue.

1 participant