Fix a bug caused by setting staleTime to zero (#388)

This commit is contained in:
Kerem Yilmaz
2024-05-29 11:04:12 -07:00
committed by GitHub
parent f13dffb3ef
commit caa974974c
2 changed files with 19 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ function CreateNewTaskFormPage() {
.then((response) => response.data);
},
enabled: !!template && !sampleCases.includes(template as SampleCase),
refetchOnWindowFocus: false,
});
if (!template) {