pre commit fixes

This commit is contained in:
amaannawab923
2026-03-06 01:53:52 +05:30
parent ea37e38895
commit 2f04dc4b51
2 changed files with 3 additions and 4 deletions

View File

@@ -736,12 +736,11 @@ const transformProps = (
| AgGridChartState
| undefined;
const chartStateHasFilter = !!(
chartState?.filterModel &&
Object.keys(chartState.filterModel).length > 0
chartState?.filterModel && Object.keys(chartState.filterModel).length > 0
);
if (chartStateHasFilter && savedFilterAppliedSet.has(slice_id)) {
chartState = { ...chartState, filterModel: {} as AgGridFilterModel };
chartState = { ...chartState!, filterModel: {} as AgGridFilterModel };
} else if (chartStateHasFilter) {
savedFilterAppliedSet.add(slice_id);
}

View File

@@ -1215,7 +1215,7 @@ describe('plugin-chart-ag-grid-table', () => {
},
).queries[0];
expect(query.extras?.where).toBe("\"user_status\" = 'active'");
expect(query.extras?.where).toBe('"user_status" = \'active\'');
});
test('should resolve longer labels before shorter ones', () => {