Skip to content

Commit

Permalink
Incorporating new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Jun 30, 2020
1 parent fc4d5cb commit 5b16619
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,12 @@ export class DashboardAppController {
savedObjectId: incomingState.id,
});
} else if ('input' in incomingState) {
container.addNewEmbeddable<EmbeddableInput>(
incomingState.type,
incomingState.input
);
const input = incomingState.input;
delete input.id;
const explicitInput = {
savedVis: input,
};
container.addNewEmbeddable<EmbeddableInput>(incomingState.type, explicitInput);
}
}
}
Expand Down

0 comments on commit 5b16619

Please sign in to comment.