Skip to content

Commit 7155759

Browse files
committed
id property can now be string
~ src/functions/find-items.ts - id is now parsed to string
1 parent 347dd4b commit 7155759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/find-items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function findItems(response: any, temp: any) {
2020
const result = [];
2121
// Adding all found results
2222
result.push(
23-
response.included.find((item: any) => (Number(item.id) === Number(temp.id)) &&
23+
response.included.find((item: any) => (String(item.id) === String(temp.id)) &&
2424
(String(item.type) === String(temp.type))),
2525
);
2626
return result;

0 commit comments

Comments
 (0)