Skip to content

Commit

Permalink
Merge pull request #2189 from metalice/CNV-45249-fix-select-all-projects
Browse files Browse the repository at this point in the history
CNV-45249: Fix selecting all projects on bootable volume list IT flow
  • Loading branch information
openshift-merge-bot[bot] authored Sep 19, 2024
2 parents 4e53e61 + 2f72c40 commit 20a2a77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils/components/ProjectDropdown/ProjectDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ const ProjectDropdown: FC<ProjectDropdownProps> = ({
namespaced: false,
});

const onSelect = (value: string) => {
onChange(value === ALL_PROJECTS ? '' : value);
};

return (
<div className="project-dropdown">
<InlineFilterSelect
options={getProjectOptions(includeAllProjects, projects)}
selected={selectedProject || ALL_PROJECTS}
setSelected={onSelect}
setSelected={onChange}
toggleProps={{ isFullWidth: true }}
/>
</div>
Expand Down

0 comments on commit 20a2a77

Please sign in to comment.