[Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened (#88849)
* [Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened * only set tags if newTags are provided
This commit is contained in:
parent
954c887006
commit
da8abdaf75
|
@ -292,8 +292,12 @@ export class SavedMap {
|
|||
|
||||
const prevTitle = this._attributes.title;
|
||||
const prevDescription = this._attributes.description;
|
||||
const prevTags = this._tags;
|
||||
this._attributes.title = newTitle;
|
||||
this._attributes.description = newDescription;
|
||||
if (newTags) {
|
||||
this._tags = newTags;
|
||||
}
|
||||
this._syncAttributesWithStore();
|
||||
|
||||
let updatedMapEmbeddableInput: MapEmbeddableInput;
|
||||
|
@ -316,6 +320,7 @@ export class SavedMap {
|
|||
// Error toast displayed by wrapAttributes
|
||||
this._attributes.title = prevTitle;
|
||||
this._attributes.description = prevDescription;
|
||||
this._tags = prevTags;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue