Skip to content

Commit

Permalink
[Asset graph] Fix query error notice (#27273)
Browse files Browse the repository at this point in the history
## Summary & Motivation
This is due to the full asset graph data not being available. Not really
sure why the fetchResult.loading is false when the data is not available
yet... but for now fixing it this way until I can investigate deeper.
  • Loading branch information
salazarm authored Jan 22, 2025
1 parent 2b4748f commit fe7ce7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function useFullAssetGraphData(options: AssetGraphFetchScope) {
});
}, [options.loading, queryItems]);

return {fullAssetGraphData, loading: fetchResult.loading || options.loading};
return {fullAssetGraphData, loading: !fetchResult.data || fetchResult.loading || options.loading};
}

export type GraphDataState = {
Expand Down

1 comment on commit fe7ce7e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-ldhqjnuym-elementl.vercel.app

Built with commit fe7ce7e.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.