diff --git a/src/lib/components/event/event-history-timeline.svelte b/src/lib/components/event/event-history-timeline.svelte
index d04a8f37e..e3f940446 100644
--- a/src/lib/components/event/event-history-timeline.svelte
+++ b/src/lib/components/event/event-history-timeline.svelte
@@ -4,6 +4,7 @@
import Accordion from '$lib/holocene/accordion.svelte';
import Icon from '$lib/holocene/icon/icon.svelte';
+ import Loading from '$lib/holocene/loading.svelte';
import ToggleButton from '$lib/holocene/toggle-button/toggle-button.svelte';
import ToggleButtons from '$lib/holocene/toggle-button/toggle-buttons.svelte';
import { translate } from '$lib/i18n/translate';
@@ -197,12 +198,17 @@
$workflowRun.workflow &&
history.length &&
visualizationRef;
+
+ const drawTimeline = () => {
+ if (timeline) {
+ timeline.destroy();
+ }
+ buildTimeline(category);
+ };
+
$: {
if (readyToDraw) {
- if (timeline) {
- timeline.destroy();
- }
- buildTimeline(category);
+ drawTimeline();
}
}
@@ -221,20 +227,24 @@