@@ -35,6 +37,7 @@ const SplitterContent: React.FC<{
className="flex items-center"
variant="black"
onClick={onSave}
+ loading={isSaving}
suffix={
diff --git a/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppVisualize/SelectAxis/SelectAxisItemLabel.tsx b/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppVisualize/SelectAxis/SelectAxisItemLabel.tsx
index 6a14cce22..c03b69a1e 100644
--- a/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppVisualize/SelectAxis/SelectAxisItemLabel.tsx
+++ b/web/src/controllers/MetricController/MetricViewChart/MetricEditController/MetricStylingApp/StylingAppVisualize/SelectAxis/SelectAxisItemLabel.tsx
@@ -22,7 +22,7 @@ export const SelectAxisItemLabel = React.memo(
return formatLabel(id, columnLabelFormat, true);
}, [columnLabelFormat, id]);
- const Icon = useMemo(() => ColumnTypeIcon[style], [style]);
+ const Icon = useMemo(() => ColumnTypeIcon[style] || ColumnTypeIcon.string, [style]);
return (
= React.memo(({ metricId
file_name
}));
const { openSuccessMessage } = useBusterNotifications();
- const { mutateAsync: updateMetric, error: updateMetricError } = useSaveMetric();
+ const {
+ mutateAsync: updateMetric,
+ isPending: isUpdatingMetric,
+ error: updateMetricError
+ } = useSaveMetric({
+ updateOnSave: true
+ });
const updateMetricErrorMessage = updateMetricError?.message;
@@ -49,7 +55,12 @@ export const MetricViewFile: React.FC = React.memo(({ metricId
error={updateMetricErrorMessage}
/>
-
+
);
});