cherry-pick(#7003): Imagery layer checkbox should match layer visibility (#7004)

cherry-pick(6266): Imagery layer checkbox should match layer visiblity (#7003)

Set layer visibility to false if layer visibility cannot be persisted
This commit is contained in:
Shefali Joshi 2023-08-28 10:48:10 -07:00 committed by GitHub
parent b043f26e49
commit 1423c23297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -864,6 +864,7 @@ export default {
if (this.domainObject.configuration) {
const persistedLayers = this.domainObject.configuration.layers;
if (!persistedLayers) {
this.layers.forEach((layer) => (layer.visible = false));
return;
}