[Visualize] switching dashboard mode doesn't update missing data view prompt (#133873)

Closes: #133785

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
Alexey Antonov 2022-06-09 12:34:10 +03:00 committed by GitHub
parent 4eacf5c264
commit 129e044562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -393,7 +393,9 @@ export class VisualizeEmbeddable
this.subscriptions.push(this.handler.render$.subscribe(this.onContainerRender));
this.subscriptions.push(
this.getOutput$().subscribe(({ error }) => {
this.getUpdated$().subscribe(() => {
const { error } = this.getOutput();
if (error) {
if (isFallbackDataView(this.vis.data.indexPattern)) {
render(