Skip to content

Commit 65ff155

Browse files
author
Liza K
committed
Update render count on error
1 parent aae2241 commit 65ff155

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/visualizations/public/embeddable/visualize_embeddable.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ export class VisualizeEmbeddable extends Embeddable<VisualizeInput, VisualizeOut
244244
if (this.abortController) {
245245
this.abortController.abort();
246246
}
247+
this.domNode.setAttribute(
248+
'data-rendering-count',
249+
this.domNode.getAttribute('data-rendering-count') + 1
250+
);
247251
this.domNode.setAttribute('data-render-complete', 'false');
248252
this.updateOutput({ loading: false, error });
249253
};

0 commit comments

Comments
 (0)