Skip to content

Commit

Permalink
fix(image) case insensitive search in image list on instance launch
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed May 8, 2024
1 parent b0dc87e commit fa2bd86
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/images/ImageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ const ImageSelector: FC<Props> = ({ onSelect, onClose }) => {
return true;
}
return (
item.aliases.includes(query) ||
item.arch.includes(query) ||
item.os.includes(query) ||
item.release.includes(query)
item.aliases.toLowerCase().includes(query) ||
item.arch.toLowerCase().includes(query) ||
item.os.toLowerCase().includes(query) ||
item.release.toLowerCase().includes(query)
);
})
.map((item) => {
Expand Down Expand Up @@ -414,12 +414,11 @@ const ImageSelector: FC<Props> = ({ onSelect, onClose }) => {
name="search-image"
type="text"
onChange={(value) => {
setQuery(value);
setQuery(value.toLowerCase());
setOs("");
setRelease("");
}}
placeholder="Search an image"
value={query}
/>
</div>
</div>
Expand Down

0 comments on commit fa2bd86

Please sign in to comment.