Skip to content

Commit e8a5ba6

Browse files
Fixed Typescript error in ItemSelector.ts (#60)
I see that this cast was removed, but Typescript is giving me errors without this string cast. Simply reintroducing what was, perhaps accidentally, removed.
1 parent 9ab67ac commit e8a5ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ItemSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class ItemSelector {
155155
else if (typeof value == 'string' && filter[key]!.includes(value)) {
156156
return false;
157157
}
158-
else if (filter[key]!.some(val => typeof val == 'string' && val.includes(value))) {
158+
else if (filter[key]!.some(val => typeof val == 'string' && val.includes(value as string))) {
159159
return false;
160160
}
161161
break;

0 commit comments

Comments
 (0)