fix issue where item search results would always have a shadow, instead of only when they're focused

This commit is contained in:
Art Lowel
2020-10-21 10:23:56 +02:00
parent f7883492c6
commit 1dcfb729a8

View File

@@ -32,9 +32,6 @@ export class SearchResultGridElementComponent<T extends SearchResult<K>, K exten
protected bitstreamDataService: BitstreamDataService protected bitstreamDataService: BitstreamDataService
) { ) {
super(); super();
if (hasValue(this.object)) {
this.isCollapsed$ = this.isCollapsed();
}
} }
/** /**
@@ -43,6 +40,7 @@ export class SearchResultGridElementComponent<T extends SearchResult<K>, K exten
ngOnInit(): void { ngOnInit(): void {
if (hasValue(this.object)) { if (hasValue(this.object)) {
this.dso = this.object.indexableObject; this.dso = this.object.indexableObject;
this.isCollapsed$ = this.isCollapsed();
} }
} }