From 3e7668ba6f866e715124f051a5841cccd9494480 Mon Sep 17 00:00:00 2001 From: Maja Grubic Date: Thu, 10 Sep 2020 13:59:20 +0100 Subject: [PATCH] Making getInputAsValueType return Promise as it should --- .../visualizations/public/embeddable/visualize_embeddable.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 => {