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