Fix: fix unshared items display

This commit is contained in:
shamoon
2025-03-28 05:47:10 -07:00
parent fd45e81a83
commit b4b2a92225
3 changed files with 11 additions and 4 deletions

View File

@@ -35,7 +35,10 @@ export abstract class ObjectNamePipe implements PipeTransform {
return this.objectService.listAll().pipe(
map((objects) => {
this.objects = objects.results
return this.objects.find((o) => o.id === obejctId)?.name || ''
return (
this.objects.find((o) => o.id === obejctId)?.name ||
$localize`Private`
)
}),
catchError(() => of(''))
)