From fbdee932c8d9c7ac5cbfbbac542d7b3363d50173 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Sat, 29 Mar 2025 21:16:05 -0600 Subject: [PATCH] Update MetricViewFile.tsx --- .../MetricController/MetricViewFile/MetricViewFile.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (