diff --git a/web/src/components/SdlConfiguration/Storage.tsx b/web/src/components/SdlConfiguration/Storage.tsx index 489f63b..2063557 100644 --- a/web/src/components/SdlConfiguration/Storage.tsx +++ b/web/src/components/SdlConfiguration/Storage.tsx @@ -306,6 +306,14 @@ export const Storage: React.FC = ({ variant="outlined" size="small" onClick={() => { + const sdl = arrayHelpers.form.values.sdl as SDLSpec; + + if (sdl.services[serviceName]?.params?.storage === undefined) { + sdl.services[serviceName].params = { + storage: {}, + }; + } + arrayHelpers.insert( profiles.compute[currentProfile]?.resources.storage?.length + 1 ?? 0, {