diff --git a/web-app/src/screens/Console/Tenants/TenantDetails/Pools/EditPool/thunks/editPoolAsync.ts b/web-app/src/screens/Console/Tenants/TenantDetails/Pools/EditPool/thunks/editPoolAsync.ts index ae7e4f15a46..e314bd5fb80 100644 --- a/web-app/src/screens/Console/Tenants/TenantDetails/Pools/EditPool/thunks/editPoolAsync.ts +++ b/web-app/src/screens/Console/Tenants/TenantDetails/Pools/EditPool/thunks/editPoolAsync.ts @@ -60,7 +60,7 @@ export const editPoolAsync = createAsyncThunk( switch (affinityType) { case "default": affinityObject = { - affinity: getDefaultAffinity(tenant.name!, poolName), + affinity: getDefaultAffinity(tenant.name!, selectedPool!), }; break; case "nodeSelector": @@ -69,7 +69,7 @@ export const editPoolAsync = createAsyncThunk( nodeSelectorLabels, withPodAntiAffinity, tenant.name!, - poolName, + selectedPool!, ), }; break;