Skip to content

Commit

Permalink
disabled when fetching (#4740)
Browse files Browse the repository at this point in the history
  • Loading branch information
briangregoryholmes authored Apr 28, 2024
1 parent 34157de commit a383db9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@
$: allErrorsQuery = fileArtifact.getAllErrors(queryClient, instanceId);
$: allErrors = $allErrorsQuery;
$: resourceQuery = fileArtifact.getResource(queryClient, instanceId);
$: isResourceLoading = resourceIsLoading($resourceQuery.data);
$: ({ data: resourceData, isFetching } = $resourceQuery);
$: isResourceLoading = resourceIsLoading(resourceData);
$: previewDisabled = !yaml.length || !!allErrors?.length || isResourceLoading;
$: previewDisabled =
!yaml.length || !!allErrors?.length || isResourceLoading || isFetching;
$: if (!yaml?.length) {
previewStatus = [
Expand Down

0 comments on commit a383db9

Please sign in to comment.