mirror of https://github.com/buster-so/buster.git
Update AppAssetLoadingContainer.tsx
This commit is contained in:
parent
6f0c5cf106
commit
18b17d69ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue