Fixed queries, mutations and JSON parse (#626)

* Fixed queries ond mutations

* Fixed JSON.parse in analytics
This commit is contained in:
yuri-sakharov
2025-11-27 11:44:50 +02:00
committed by GitHub
parent f01c19f330
commit 3f623458b3
10 changed files with 124 additions and 115 deletions

View File

@@ -131,7 +131,7 @@ export const InstallReleaseChartModal = ({
// Confirm method (install)
const setReleaseVersionMutation = useMutation(
[
{mutationKey:[
"setVersion",
namespace,
releaseName,
@@ -140,7 +140,7 @@ export const InstallReleaseChartModal = ({
selectedCluster,
chartAddress,
],
async () => {
mutationFn:async () => {
setInstallError("");
const formData = new FormData();
formData.append("preview", "false");
@@ -161,7 +161,6 @@ export const InstallReleaseChartModal = ({
);
return data;
},
{
onSuccess: async (response) => {
onClose();
setSelectedVersionData({ version: "", urls: [] }); //cleanup