Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lens] update LensEmbeddable.getSavedVis to return LensSavedObjectAtt…
…ributes (#177064) Blocking #176869 While working on #176869, I discovered there is a type mismatch between `LensEmbeddable.getSavedVis` internal implementation and consumers of `LensEmbeddable.getSavedVis` results. LensEmbeddable.getSavedVis returns `Readonly<Document | undefined>`. LensEmbeddable.getSavedVis consumers are typing the response as `LensSavedObjectAttributes`. This PR updates `LensEmbeddable.getSavedVis` to return `Readonly<LensSavedObjectAttributes | undefined>` since that is how its being used. --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information