Fixed storage class selectors for add & edit pool wizards (#2183)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-07-20 10:11:56 -05:00
committed by GitHub
parent c71f084531
commit 712d3870eb
3 changed files with 4 additions and 4 deletions

View File

@@ -274,7 +274,7 @@ const PoolResources = ({ classes }: IPoolResourcesProps) => {
id="storage_class"
name="storage_class"
onChange={(e: SelectChangeEvent<string>) => {
setFieldInfo("storageClasses", e.target.value as string);
setFieldInfo("storageClass", e.target.value as string);
}}
label="Storage Class"
value={storageClass}

View File

@@ -256,7 +256,7 @@ const PoolResources = ({ classes }: IPoolResourcesProps) => {
id="storage_class"
name="storage_class"
onChange={(e: SelectChangeEvent<string>) => {
setFieldInfo("storageClasses", e.target.value as string);
setFieldInfo("storageClass", e.target.value as string);
}}
label="Storage Class"
value={storageClass}

View File

@@ -23,7 +23,7 @@ import { generatePoolName } from "../../../../../../../common/utils";
import { getDefaultAffinity, getNodeSelector } from "../../../utils";
import { IEditPoolItem, IEditPoolRequest } from "../../../../ListTenants/types";
import { resetEditPoolForm } from "../editPoolSlice";
import { setTenantDetailsLoad } from "../../../../tenantsSlice";
import { getTenantAsync } from "../../../../thunks/tenantDetailsAsync";
export const editPoolAsync = createAsyncThunk(
"editPool/editPoolAsync",
@@ -128,7 +128,7 @@ export const editPoolAsync = createAsyncThunk(
)
.then(() => {
dispatch(resetEditPoolForm());
dispatch(setTenantDetailsLoad(true));
dispatch(getTenantAsync());
return poolsURL;
})
.catch((err: ErrorResponseHandler) => {