Skip to content

Commit 4b0043a

Browse files
committed
fix: wrong logic on chart config change
1 parent 5946942 commit 4b0043a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/app/components/ChartEditor.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,10 @@ export const ChartEditor: FC<ChartEditorProps> = ({
339339
setAllowQuery(payload.needRefresh);
340340
return true;
341341
}
342-
if (payload.value.type !== ChartDataSectionType.FILTER) {
342+
if (
343+
payload.value.type === ChartDataSectionType.GROUP ||
344+
payload.value.type === ChartDataSectionType.MIXED
345+
) {
343346
const dateLevelComputedFields = payload.value.rows.filter(
344347
v => v.category === ChartDataViewFieldCategory.DateLevelComputedField,
345348
);

0 commit comments

Comments
 (0)