Skip to content

Commit 34741a3

Browse files
authored
filter out currentResults which had .card removed (#1995)
1 parent cfd2579 commit 34741a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/host/app/resources/search.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export class Search extends Resource<Args> {
8181

8282
@cached
8383
get instances() {
84-
return [...this.currentResults.values()].map((r) => r.card) as CardDef[]; // empty results are filtered out already
84+
return [...this.currentResults.values()]
85+
.filter((r) => r.card)
86+
.map((r) => r.card) as CardDef[];
8587
}
8688

8789
@cached

0 commit comments

Comments
 (0)