From e18711c389398bbb9dfb49ae38bd9626e320485e Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Thu, 8 Jul 2021 10:00:35 +0100 Subject: [PATCH] [ML] Fixing annotations table loading hang --- .../annotations/annotations_table/annotations_table.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x-pack/plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js b/x-pack/plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js index 20d3f8e03ddbc..9e62bde38d31f 100644 --- a/x-pack/plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js +++ b/x-pack/plugins/ml/public/application/components/annotations/annotations_table/annotations_table.js @@ -129,6 +129,12 @@ class AnnotationsTableUI extends Component { jobId: undefined, }); }); + } else { + this.setState({ + annotations: [], + isLoading: false, + jobId: undefined, + }); } }