run sql limit timeout

This commit is contained in:
Nate Kelley 2025-04-10 17:06:13 -06:00
parent 700395ff49
commit f04234e7e8
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 1 additions and 6 deletions

View File

@ -13,7 +13,6 @@ import { didColumnDataChange, simplifyChatConfigForSQLChange } from './helpers';
import { useRunSQL as useRunSQLQuery } from '@/api/buster_rest';
import { useUpdateMetric } from '@/api/buster_rest/metrics';
import { useGetMetricMemoized } from '@/context/Metrics';
import { createDefaultChartConfig } from '@/lib/metrics/messageAutoChartHandler';
import { timeout } from '@/lib';
export const useMetricRunSQL = () => {
@ -197,16 +196,12 @@ export const useMetricRunSQL = () => {
});
}
await queryClient.invalidateQueries({
queryKey: queryKeys.metricsGetMetric(metricId).queryKey
});
setTimeout(() => {
openSuccessNotification({
title: 'SQL Saved',
message: 'Your changes have been saved.'
});
}, 120);
}, 50);
originalConfigs.current = null;
}