Skip to content

Commit

Permalink
Fix image filter on instance selection (#1125)
Browse files Browse the repository at this point in the history
## Done

- Fix image filter on instance selection
- Ubuntu images would not be filtered when selecting other distributions
because of invalid row keys

## QA

1. Run the LXD-UI:
- On the demo server via the link posted by @webteam-app below. This is
only available for PRs created by collaborators of the repo. Ask
@mas-who or @edlerd for access.
- With a local copy of this branch, [build and run as described in the
docs](../CONTRIBUTING.md#setting-up-for-development).
2. Perform the following QA steps:
    - start instance creation, select image modal
    - filter by distribution
    - ensure no errors in console and rows represent filter status
  • Loading branch information
edlerd authored Feb 25, 2025
2 parents 8bc7e81 + ebbefbc commit acf6e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/images/ImageSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const ImageSelector: FC<Props> = ({ onSelect, onClose }) => {
};

return {
key: itemType + item.os + displayRelease + displayVariant,
key: itemType + item.os + displayRelease + displayVariant + item.server,
className: "u-row",
columns: [
{
Expand Down

0 comments on commit acf6e1c

Please sign in to comment.