Update AppAssetLoadingContainer.tsx

This commit is contained in:
Nate Kelley 2025-04-08 09:53:40 -06:00
parent 6f0c5cf106
commit 18b17d69ef
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ export const AppAssetLoadingContainer: React.FC<{
AppAssetLoadingContainer.displayName = 'AppAssetLoadingContainer';
const useGetMetricAssetData = ({ assetId, enabled }: { assetId: string; enabled: boolean }) => {
const { isFetched: isMetricFetched, ...rest } = useQuery({
queryKey: metricsQueryKeys.metricsGetMetric(assetId).queryKey
const { isFetched: isMetricFetched, ...rest } = useGetMetric({
id: enabled ? assetId : undefined
});
const { isFetched: isMetricDataFetched } = useGetMetricData({
id: enabled ? assetId : undefined