Skip to content

Commit 59e8ed8

Browse files
committed
Fix of uninitialized isAdmin handling
1 parent b38331f commit 59e8ed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/item-page/simple/field-components/clarin-item-versions-field/clarin-item-versions-field.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class ClarinItemVersionsFieldComponent extends ItemVersionsComponent impl
5656
);
5757
} else {
5858
// Fallback: check if isAdmin$ is available, otherwise hide the component
59-
this.showMetadataValue = this.isAdmin$ || of(false);
59+
this.showMetadataValue = this.isAdmin$ ? this.isAdmin$ : of(false);
6060
}
6161
}
6262

0 commit comments

Comments
 (0)