Skip to content

Commit 7d7b872

Browse files
committed
Removed check on mounted status from workflow page
1 parent 3d22035 commit 7d7b872

File tree

1 file changed

+1
-5
lines changed
  • src/routes/v2/projects/[projectId]/workflows/[workflowId]

1 file changed

+1
-5
lines changed

src/routes/v2/projects/[projectId]/workflows/[workflowId]/+page.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@
111111
/** @type {import('fractal-components/types/api').ApplyWorkflowV2|undefined} */
112112
let selectedSubmittedJob;
113113
114-
let mounted = false;
115-
116114
$: updatableWorkflowList = workflow.task_list || [];
117115
118116
$: sortedDatasets = datasets.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
@@ -122,11 +120,9 @@
122120
: 3000;
123121
124122
onMount(async () => {
125-
mounted = false;
126123
selectedDatasetId = getSelectedWorkflowDataset(workflow, datasets, defaultDatasetId);
127124
await loadJobsStatus();
128125
await checkNewVersions();
129-
mounted = true;
130126
});
131127
132128
beforeNavigate((navigation) => {
@@ -815,7 +811,7 @@
815811
816812
{#if workflow.task_list.length == 0}
817813
<p class="text-center mt-3">No workflow tasks yet, add one.</p>
818-
{:else if mounted}
814+
{:else}
819815
<div class="list-group list-group-flush" data-testid="workflow-tasks-list">
820816
{#each workflow.task_list as workflowTask}
821817
<button

0 commit comments

Comments
 (0)