Skip to content

Commit f4eafcb

Browse files
committed
fix(frontend): decouple shared HuggingFace tasks fetch from component lifecycle
1 parent de75009 commit f4eafcb

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

frontend/src/app/workspace/component/hugging-face/hugging-face.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,7 @@ export class HuggingFaceComponent extends FieldType<FieldTypeConfig> implements
244244
tasksFetchSubscription = this.http
245245
.get<HuggingFaceTaskOption[]>(`${AppSettings.getApiEndpoint()}/huggingface/tasks`)
246246
.pipe(
247-
takeUntil(this.destroy$),
248247
finalize(() => {
249-
// If takeUntil fires before next/error, reset the module-level guard
250-
// so the next component instance can start a fresh fetch.
251248
if (cachedTaskOptions === null && tasksFetchError === null) {
252249
tasksFetchSubscription = null;
253250
}

0 commit comments

Comments
 (0)