Skip to content

Commit b293024

Browse files
committed
Fixed logic checking value of this.hasDraftVersion$
1 parent 9797d0a commit b293024

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
@@ -90,7 +90,7 @@ export class ClarinItemVersionsFieldComponent extends ItemVersionsComponent impl
9090
*/
9191
getVersionWorkspaceId(versionItem: Observable<any>): Observable<string | undefined> {
9292
return combineLatest([
93-
this.hasDraftVersion$ || of(false),
93+
this.hasDraftVersion$ ?? of(false),
9494
of(versionItem)
9595
]).pipe(
9696
switchMap(([hasDraftVersion, item]) =>

0 commit comments

Comments
 (0)