mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 06:18:04 +00:00
Fixed queries, mutations and JSON parse (#626)
* Fixed queries ond mutations * Fixed JSON.parse in analytics
This commit is contained in:
@@ -43,9 +43,9 @@ export const useDiffData = ({
|
||||
selectedVerData: { [key: string]: string };
|
||||
chart: string;
|
||||
}) => {
|
||||
return useQuery(
|
||||
[selectedRepo, versionsError, chart, currentVerManifest, selectedVerData],
|
||||
async () => {
|
||||
return useQuery({
|
||||
queryKey: [selectedRepo, versionsError, chart, currentVerManifest, selectedVerData],
|
||||
queryFn: async () => {
|
||||
const formData = new FormData();
|
||||
formData.append("a", currentVerManifest);
|
||||
formData.append("b", selectedVerData.manifest);
|
||||
@@ -57,8 +57,7 @@ export const useDiffData = ({
|
||||
|
||||
return diff;
|
||||
},
|
||||
{
|
||||
enabled: Boolean(selectedVerData),
|
||||
}
|
||||
enabled: Boolean(selectedVerData),
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user