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 <[email protected]>
  • Loading branch information
Unix4ever committed Oct 23, 2024
1 parent 4b4088d commit 62917e7
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 62917e7

Please sign in to comment.