From 54837c59de31e6952050fda625caf98d988e04e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Tainon?= Date: Wed, 5 Jun 2024 11:53:08 +0200 Subject: [PATCH] [Fix] Fork saga to allow continuing task loading --- frontend/task/index.ts | 2 +- frontend/task/task_types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/task/index.ts b/frontend/task/index.ts index f8d4c057..76241ca2 100644 --- a/frontend/task/index.ts +++ b/frontend/task/index.ts @@ -274,7 +274,7 @@ function* taskLoadSaga(app: App, action) { const currentTask = yield* appSelect(state => state.task.currentTask); if (!isServerTask(currentTask)) { - yield* call(subscribePlatformHelper); + yield* fork(subscribePlatformHelper); } if (currentTask) { diff --git a/frontend/task/task_types.ts b/frontend/task/task_types.ts index bcdbf068..00d66639 100644 --- a/frontend/task/task_types.ts +++ b/frontend/task/task_types.ts @@ -223,7 +223,7 @@ export interface TaskServer extends TaskNormalized { export type Task = QuickalgoTask & Partial; export function isServerTask(object: Task|null): boolean { - return (object && null !== object.id && undefined !== object.id) || window.PEMTaskMetaData; + return !!((object && null !== object.id && undefined !== object.id) || window.PEMTaskMetaData); } export function isServerTest(object: TaskTest): boolean {