Skip to content

Commit

Permalink
fix: use proper selectors in the MachineClass create UI
Browse files Browse the repository at this point in the history
We added `no-manual-allocation` filter there, but it was added using `OR`.
It should be concatenated with each condition in `OR` to work as `AND`.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
(cherry picked from commit 62917e7)
  • Loading branch information
Unix4ever committed Oct 25, 2024
1 parent ed779c9 commit 5d0c81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/omni/MachineClasses/MachineClass.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ const watchOpts = computed(() => {
namespace: DefaultNamespace,
type: MachineStatusType,
},
selectors: nonEmptyConditions.value.concat([`!${LabelNoManualAllocation}`]),
selectors: nonEmptyConditions.value.map(c => c + `,!${LabelNoManualAllocation}`),
selectUsingOR: true,
runtime: Runtime.Omni,
};
Expand Down

0 comments on commit 5d0c81a

Please sign in to comment.