Skip to content

Commit 63659bb

Browse files
authored
F #7528: Fix numa affinity render (#4112)
1 parent d8e0ee2 commit 63659bb

File tree

1 file changed

+3
-3
lines changed
  • src/fireedge/src/modules/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/numa

1 file changed

+3
-3
lines changed

src/fireedge/src/modules/components/Forms/VmTemplate/CreateForm/Steps/ExtraConfiguration/numa/schema.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ const NODE_AFFINITY = {
8282
name: 'TOPOLOGY.NODE_AFFINITY',
8383
label: T.NodeAffinity,
8484
tooltip: T.NodeAffinityConcept,
85-
dependOf: [PIN_POLICY.name],
86-
htmlType: ([pinPolicy] = []) =>
87-
pinPolicy !== NUMA_PIN_POLICIES.NODE_AFFINITY && INPUT_TYPES.HIDDEN,
85+
dependOf: [PIN_POLICY.name, ENABLE_NUMA.name],
86+
htmlType: ([pinPolicy, enabledNuma = false] = []) =>
87+
(!enabledNuma || pinPolicy !== NUMA_PIN_POLICIES.NODE_AFFINITY) && INPUT_TYPES.HIDDEN,
8888
type: INPUT_TYPES.TEXT,
8989
validation: lazy((_, { context }) => {
9090
const { extra } = context || {}

0 commit comments

Comments
 (0)