Skip to content

Commit

Permalink
add deps
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit committed Oct 24, 2024
1 parent cd83e13 commit 79f425d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface Field {
}

const EditRelease = () => {
let { releaseNamespace, releaseName, releaseVersion } = useParams();
let { releaseNamespace, releaseName } = useParams();

const [form] = Form.useForm();

Expand Down Expand Up @@ -101,7 +101,7 @@ const EditRelease = () => {
.finally(() => {
setLoadValues(true);
});
}, [releaseNamespace, releaseName]);
}, [releaseNamespace, releaseName, rootField]);

useEffect(() => {
let initialValuesMapped = mapsToArray(
Expand All @@ -113,7 +113,7 @@ const EditRelease = () => {

form.setFieldsValue(initialValuesMapped);
form.validateFields(flattenObjectKeys(initialValuesMapped));
}, [initialValuesRaw, form]);
}, [initialValuesRaw, form, rootField]);

const handleValuesChange = (changedValues: any, allValues: any) => {
if (JSON.stringify(allValues) === JSON.stringify(initialValues)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const ReleaseDetails = () => {
description: "",
});

let { releaseNamespace, releaseName, releaseVersion } = useParams();
let { releaseNamespace, releaseName } = useParams();

useEffect(() => {
function fetchRelease() {
Expand Down
16 changes: 0 additions & 16 deletions cyclops-ui/src/components/pages/Helm/Releases/Releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,6 @@ const HelmReleases = () => {
setsearchInputFilter(query);
};

const getStatusColor = (module: any) => {
if (module.status === "unknown") {
return "gray";
}

if (module.status === "healthy") {
return "#27D507";
}

if (module.status === "progressing") {
return "#ffbf00";
}

return "#FF0000";
};

const renderReleasesCards = () => {
if (loadingReleases) {
return <Spin size={"large"} />;
Expand Down

0 comments on commit 79f425d

Please sign in to comment.