Skip to content

Commit

Permalink
[Maps] fix unlinking an embedded map by reference Causes Error (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese authored Dec 10, 2020
1 parent 5b8d992 commit 36f8a64
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ export class SavedMap {
};
} else {
const doc = await getMapAttributeService().unwrapAttributes(this._mapEmbeddableInput);
const references = doc.references;
delete doc.references;
this._attributes = doc;
const { references, ...savedObjectAttributes } = doc;
this._attributes = savedObjectAttributes;
const savedObjectsTagging = getSavedObjectsTagging();
if (savedObjectsTagging && references && references.length) {
this._tags = savedObjectsTagging.ui.getTagIdsFromReferences(references);
Expand Down

0 comments on commit 36f8a64

Please sign in to comment.