Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Oct 17, 2024
1 parent 7056053 commit 59fbd27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Icon() {

const categoryIcons = useMemo(() => {
if (firstCategory) {
return icons.filter((icon) => icon.categories.includes(firstCategory));
return icons.filter((icon) => icon.categories.includes(firstCategory as never));
}

return icons;
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/Icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function Icons() {

const searchableList = useMemo(() => {
if (searchCategories.length >= 1) {
return icons.filter((icon) => searchCategories.every((_searchCategory) => icon.categories.includes(_searchCategory)));
return icons.filter((icon) => searchCategories.every((_searchCategory) => icon.categories.includes(_searchCategory as never)));
}

return icons;
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function Icons() {
}}
>
{categories.map((_category) => {
const categoryIcons = searchableList.filter((icon) => icon.categories.includes(_category.slug));
const categoryIcons = searchableList.filter((icon) => icon.categories.includes(_category.slug as never));

if (categoryIcons.length === 0) {
return;
Expand Down

0 comments on commit 59fbd27

Please sign in to comment.