Skip to content

Commit

Permalink
fix icon search field display on no result
Browse files Browse the repository at this point in the history
  • Loading branch information
yusing committed Feb 1, 2025
1 parent 8275d1d commit 8e1ee76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/config_editor/icon_searcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const IconSearcher: React.FC<
title={"Error loading icons"}
description={icons.error.message}
/>
) : !icons.value ? (
<EmptyState title={"No icons found"} />
) : !icons.value || icons.value.length === 0 ? (
<EmptyState title={"No result"} />
) : (
icons.value.map((e) => (
<Button p="0" key={e} asChild onClick={() => onChange(e)}>
Expand Down

0 comments on commit 8e1ee76

Please sign in to comment.