mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
Fixed queries, mutations and JSON parse (#626)
* Fixed queries ond mutations * Fixed JSON.parse in analytics
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -113,7 +113,7 @@ export const InstallRepoChartModal = ({
|
||||
|
||||
// Confirm method (install)
|
||||
const setReleaseVersionMutation = useMutation(
|
||||
[
|
||||
{mutationKey:[
|
||||
"setVersion",
|
||||
namespace,
|
||||
releaseName,
|
||||
@@ -122,7 +122,7 @@ export const InstallRepoChartModal = ({
|
||||
selectedCluster,
|
||||
chartAddress,
|
||||
],
|
||||
async () => {
|
||||
mutationFn:async () => {
|
||||
setInstallError("");
|
||||
const formData = new FormData();
|
||||
formData.append("preview", "false");
|
||||
@@ -139,7 +139,7 @@ export const InstallRepoChartModal = ({
|
||||
);
|
||||
return data;
|
||||
},
|
||||
{
|
||||
|
||||
onSuccess: async (response) => {
|
||||
onClose();
|
||||
navigate(
|
||||
|
||||
Reference in New Issue
Block a user