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