File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { MatRippleModule } from '@angular/material/core';
55import { MatTooltipModule } from '@angular/material/tooltip' ;
66import { ActivatedRoute , Router , RouterModule } from '@angular/router' ;
77import { listZoneTags , PlaceZone } from '@placeos/ts-client' ;
8- import { shareReplay } from 'rxjs' ;
8+ import { catchError , of , shareReplay } from 'rxjs' ;
99import { extensionsForItem } from '../common/api' ;
1010import { AsyncHandler } from '../common/async-handler.class' ;
1111import { PlaceDebugService } from '../common/debug.service' ;
@@ -192,7 +192,12 @@ export class ZonesComponent extends AsyncHandler {
192192
193193 public readonly newItem = ( ) => this . _item . create ( ) ;
194194 public readonly bulkAdd = ( ) => this . _item . bulkAdd ( ) ;
195- public readonly zone_tags = toSignal ( listZoneTags ( ) . pipe ( shareReplay ( 1 ) ) , {
196- initialValue : [ ] ,
197- } ) ;
195+ public readonly zone_tags = toSignal (
196+ listZoneTags ( )
197+ . pipe ( catchError ( ( ) => of ( [ ] ) ) )
198+ . pipe ( shareReplay ( 1 ) ) ,
199+ {
200+ initialValue : [ ] ,
201+ } ,
202+ ) ;
198203}
You can’t perform that action at this time.
0 commit comments