V2Wizrd: clean resource group when user change the source name

this commit fix https://github.com/osbuild/image-builder-frontend/issues/1691
when user change the source name, resource gruop should clean up
This commit is contained in:
mgold1234 2024-02-29 15:04:57 +02:00 committed by Lucas Garfield
parent 2dc1ac5f88
commit 89bee6a723

View file

@ -68,6 +68,7 @@ export const AzureSourcesSelect = () => {
(source) => source?.name === sourceName
)?.id;
dispatch(changeAzureSource(sourceId || ''));
dispatch(changeAzureResourceGroup(''));
setIsOpen(false);
};