diff --git a/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts b/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts index e265a02357183..18ae68ec40fe5 100644 --- a/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts +++ b/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts @@ -428,7 +428,9 @@ export class VisualizeEmbeddable input.savedVis.title = this.getTitle(); } delete input.savedVis.id; - return input as VisualizeByValueInput; + return new Promise((resolve) => { + resolve({ ...(input as VisualizeByValueInput) }); + }); }; getInputAsRefType = async (): Promise => {