Stop flicker of parameters when task is running (#597)
This commit is contained in:
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user