diff --git a/cyclops-ui/src/components/pages/EditModule/EditModule.tsx b/cyclops-ui/src/components/pages/EditModule/EditModule.tsx index 63c88cb2..2989cc9d 100644 --- a/cyclops-ui/src/components/pages/EditModule/EditModule.tsx +++ b/cyclops-ui/src/components/pages/EditModule/EditModule.tsx @@ -275,7 +275,7 @@ const EditModule = () => { }); }; fetchModuleData(); - }, [editTemplateForm, form, moduleName, mapsToArray]); + }, [editTemplateForm, form, moduleName,moduleNamespace, mapsToArray]); useEffect(() => { form.validateFields(flattenObjectKeys(values)); diff --git a/cyclops-ui/src/components/pages/ModuleDetails.tsx b/cyclops-ui/src/components/pages/ModuleDetails.tsx index 362e3ee7..ea40c5ec 100644 --- a/cyclops-ui/src/components/pages/ModuleDetails.tsx +++ b/cyclops-ui/src/components/pages/ModuleDetails.tsx @@ -234,7 +234,7 @@ const ModuleDetails = () => { setLoadResources(true); setError(mapResponseError(error)); }); - }, [moduleName]); + }, [moduleName,moduleNamespace]); useEffect(() => { function fetchModule() { @@ -257,7 +257,7 @@ const ModuleDetails = () => { return () => { clearInterval(interval); }; - }, [moduleName, fetchModuleResources]); + }, [moduleName, moduleNamespace,fetchModuleResources]); const getCollapseColor = (fieldName: string) => { if (