MapStore2
MapStore2 copied to clipboard
Add a layer on TOC issue
Description
The layer was added twice on TOC.

How to reproduce
- Open a map
- Open the Catalog
- Select a layer and add it the TOC
- Open the TOC
Current Result
The layer appears twice on the TOC
- [x] Not browser related
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)| Browser Affected | Version |
|---|---|
| Internet Explorer | |
| Edge | |
| Chrome | |
| Firefox | |
| Safari |
Other useful information
It seems a regression introduced after #8457. The tool works well in QA.