fix: error toast on preview

This commit is contained in:
Vijaykant Yadav 2025-04-03 14:27:21 +05:30
parent 4313e07dc2
commit 0e09fd7aa9

View file

@ -621,7 +621,7 @@ export const createQueryPanelSlice = (set, get) => ({
query,
'edit'
);
if (finalData.status === 'failed') {
if (finalData?.status === 'failed') {
onEvent('onDataQueryFailure', queryEvents);
setPreviewLoading(false);
setIsPreviewQueryLoading(false);