Skip to content

#12237: fix the background selector show an error in console#12242

Open
mahmoudadel54 wants to merge 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:issue_12237
Open

#12237: fix the background selector show an error in console#12242
mahmoudadel54 wants to merge 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:issue_12237

Conversation

@mahmoudadel54
Copy link
Copy Markdown
Contributor

@mahmoudadel54 mahmoudadel54 commented Apr 10, 2026

Description

This PR includes resolving "Cannot update during an existing state transition" console error in BackgroundSelector. It includes:

  • Refactored BackgroundSelector.jsx
  • Moved the logic for detecting and adding the missing Ellipsoid terrain from the main function body into a React.useEffect hook

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

What is the current behavior?

#12237

What is the new behavior?

The console error of background selector has been gone, resolved by the fix.

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

…onsole

Description:
- Refactored BackgroundSelector.jsx
- Moved the logic for detecting and adding the missing Ellipsoid terrain from the main function body into a React.useEffect hook
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.

The background selector show an error in console

3 participants