diff --git a/web/src/controllers/MetricController/MetricViewFile/MetricViewFile.tsx b/web/src/controllers/MetricController/MetricViewFile/MetricViewFile.tsx index e4822f9f2..0df778b2a 100644 --- a/web/src/controllers/MetricController/MetricViewFile/MetricViewFile.tsx +++ b/web/src/controllers/MetricController/MetricViewFile/MetricViewFile.tsx @@ -12,7 +12,7 @@ export const MetricViewFile: React.FC = 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 = React.memo(({ metricId setFile(fileProp); }, [fileProp]); + console.log(updateMetricError); + return (