Skip to content

Commit

Permalink
[Fix] Fork saga to allow continuing task loading
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed Jun 5, 2024
1 parent 15feb4b commit 54837c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/task/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/task/task_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export interface TaskServer extends TaskNormalized {
export type Task = QuickalgoTask & Partial<TaskServer>;

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 {
Expand Down

0 comments on commit 54837c5

Please sign in to comment.