Skip to content

#10622: Fix Not possible to remove widget from Map - JavaScript error#10623

Merged
MV88 merged 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:issue_10622
Oct 24, 2024
Merged

#10622: Fix Not possible to remove widget from Map - JavaScript error#10623
MV88 merged 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:issue_10622

Conversation

@mahmoudadel54
Copy link
Copy Markdown
Contributor

@mahmoudadel54 mahmoudadel54 commented Oct 23, 2024

Description

This PR fixes the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

#10622

What is the current behavior?
#10622

What is the new behavior?
The delete confirmation dialog window closes and the widget is removed from the map normally.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

…cript error

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test
Copy link
Copy Markdown
Contributor

@MV88 MV88 left a comment

Choose a reason for hiding this comment

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

LGTM

@MV88 MV88 merged commit 3794608 into geosolutions-it:master Oct 24, 2024
@MV88
Copy link
Copy Markdown
Contributor

MV88 commented Oct 24, 2024

@ElenaGallo pls test it in DEV

@ElenaGallo ElenaGallo added the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Oct 25, 2024
@ElenaGallo
Copy link
Copy Markdown
Contributor

ElenaGallo commented Oct 25, 2024

Test passed, @mahmoudadel54 please backport to 2024.02.xx. Thanks

@tdipisa
Copy link
Copy Markdown
Member

tdipisa commented Oct 25, 2024

Test passed, @mahmoudadel54 please backport to 2024.02.xx. Thanks

@mahmoudadel54 the PR need to be also backported to c027-2024-10-24 branch. Thank you.

mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Oct 25, 2024
…cript error (geosolutions-it#10623)

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Oct 25, 2024
…cript error (geosolutions-it#10623)

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test
@mahmoudadel54
Copy link
Copy Markdown
Contributor Author

Test passed, @mahmoudadel54 please backport to 2024.02.xx. Thanks

Backport is done ---> #10629

MV88 pushed a commit that referenced this pull request Oct 25, 2024
…0623) (#10629)

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test
@mahmoudadel54
Copy link
Copy Markdown
Contributor Author

Test passed, @mahmoudadel54 please backport to 2024.02.xx. Thanks

@mahmoudadel54 the PR need to be also backported to c027-2024-10-24 branch. Thank you.

Backport is done ---> #10630

rmelarab-ngs pushed a commit to ngsllc/MapStore2 that referenced this pull request Nov 5, 2024
…cript error (geosolutions-it#10623)

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test
MV88 added a commit that referenced this pull request Nov 6, 2024
…om Map - JavaScript error (#10623) (#10630)

* #10622: Not possible to remove widget from Map - JavaScript error (#10623)

Description:
- fix the issue of not remove widget from map in case of existing other widgets has dependenciesMap prop = empty object
- add unit test

* tentative fix for the test

---------

Co-authored-by: MV88 <matteo.velludini@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch bug C027-COMUNE_FI-2023-SUPPORT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not possible to remove widget from Map - JavaScript error

4 participants