Skip to content

Commit

Permalink
fix(System/Nodes): do not use banned=disabled for Rack link [YTFRONT-…
Browse files Browse the repository at this point in the history
…4603]
  • Loading branch information
ma-efremoff committed Feb 7, 2025
1 parent 5b1eb1b commit cdc35e6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ui/src/ui/pages/system/Nodes/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ const Nodes = (props: NodesProps) => {
const stateAsOthers = s === 'others' ? '!online,!offline' : undefined;
const state = s === 'online' || s === 'offline' ? s : stateAsOthers;

const flags = s === 'banned' ? ['banned' as const] : [f, '!banned' as const];
let flags: Array<typeof f | 'banned' | '!banned'> = [f];
if (s === 'banned') {
flags = ['banned'];
} else if (s) {
flags = [f, '!banned'];
}

const p: ComponentsNodesLinkParams = {
cluster,
Expand Down

0 comments on commit cdc35e6

Please sign in to comment.