Stop flicker of parameters when task is running (#597)

This commit is contained in:
Salih Altun
2024-07-12 00:23:12 +03:00
committed by GitHub
parent 4839f58fda
commit f6bb4981fc

View File

@@ -21,7 +21,7 @@ function TaskParameters() {
const credentialGetter = useCredentialGetter(); const credentialGetter = useCredentialGetter();
const { const {
data: task, data: task,
isFetching: taskIsFetching, isLoading: taskIsLoading,
isError: taskIsError, isError: taskIsError,
} = useQuery<TaskApiResponse>({ } = useQuery<TaskApiResponse>({
queryKey: ["task", taskId], queryKey: ["task", taskId],
@@ -31,7 +31,7 @@ function TaskParameters() {
}, },
}); });
if (taskIsFetching) { if (taskIsLoading) {
return ( return (
<div className="h-[40rem]"> <div className="h-[40rem]">
<Skeleton className="h-full" /> <Skeleton className="h-full" />