Skip to content

Commit

Permalink
Making getInputAsValueType return Promise as it should
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Sep 10, 2020
1 parent 1189f44 commit 3e7668b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ export class VisualizeEmbeddable
input.savedVis.title = this.getTitle();
}
delete input.savedVis.id;
return input as VisualizeByValueInput;
return new Promise<VisualizeByValueInput>((resolve) => {
resolve({ ...(input as VisualizeByValueInput) });
});
};

getInputAsRefType = async (): Promise<VisualizeByReferenceInput> => {
Expand Down

0 comments on commit 3e7668b

Please sign in to comment.