@@ -10,8 +10,6 @@ import { InputText } from 'primeng/inputtext';
1010import { RadioButton } from 'primeng/radiobutton' ;
1111import { Skeleton } from 'primeng/skeleton' ;
1212
13- import { timer } from 'rxjs' ;
14-
1513import {
1614 ChangeDetectionStrategy ,
1715 Component ,
@@ -24,7 +22,6 @@ import {
2422 OnInit ,
2523 output ,
2624 signal ,
27- viewChild ,
2825} from '@angular/core' ;
2926import { takeUntilDestroyed , toSignal } from '@angular/core/rxjs-interop' ;
3027import { FormControl , FormsModule , ReactiveFormsModule } from '@angular/forms' ;
@@ -63,8 +60,6 @@ import { ResourceTypeInfoDialogComponent } from '../resource-type-info-dialog/re
6360 changeDetection : ChangeDetectionStrategy . OnPush ,
6461} )
6562export class StorageItemSelectorComponent implements OnInit {
66- addFilesPicker = viewChild < GoogleFilePickerComponent > ( 'filePicker' ) ;
67-
6863 private destroyRef = inject ( DestroyRef ) ;
6964 private customDialogService = inject ( CustomDialogService ) ;
7065 private translateService = inject ( TranslateService ) ;
@@ -241,11 +236,6 @@ export class StorageItemSelectorComponent implements OnInit {
241236 handleFolderSelection = ( folder : StorageItem ) : void => {
242237 this . selectedStorageItem . set ( folder ) ;
243238 this . hasFolderChanged . set ( folder ?. itemId !== this . initiallySelectedStorageItem ( ) ?. itemId ) ;
244- if ( this . isGoogleFilePicker ( ) ) {
245- timer ( 1000 )
246- . pipe ( takeUntilDestroyed ( this . destroyRef ) )
247- . subscribe ( ( ) => this . addFilesPicker ( ) ?. createPicker ( ) ) ;
248- }
249239 } ;
250240
251241 private updateBreadcrumbs (
0 commit comments