Update MetricViewFile.tsx

This commit is contained in:
Nate Kelley 2025-03-29 21:16:05 -06:00
parent bc2e126eb8
commit fbdee932c8
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export const MetricViewFile: React.FC<MetricViewProps> = React.memo(({ metricId
file_name
}));
const { openSuccessMessage } = useBusterNotifications();
const { mutateAsync: updateMetric } = useUpdateMetric();
const { mutateAsync: updateMetric, error: updateMetricError } = useUpdateMetric();
const { file: fileProp, file_name } = metric || {};
@ -36,6 +36,8 @@ export const MetricViewFile: React.FC<MetricViewProps> = React.memo(({ metricId
setFile(fileProp);
}, [fileProp]);
console.log(updateMetricError);
return (
<div className="relative h-full overflow-hidden p-5">
<CodeCard