diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts index 0ca97eecdff..9c7238297fa 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts @@ -8,7 +8,6 @@ import { OnInit, OnDestroy } from '@angular/core'; -import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ButtonModule } from 'primeng/button'; @@ -234,14 +233,9 @@ export class DotEditContentFileFieldComponent implements ControlValueAccessor, O } }); - this.#dialogRef.onClose - .pipe( - filter((file) => !!file), - takeUntilDestroyed() - ) - .subscribe((file) => { - this.store.setPreviewFile(file); - }); + this.#dialogRef.onClose.pipe(filter((file) => !!file)).subscribe((file) => { + this.store.setPreviewFile(file); + }); } /**