Skip to content

Commit

Permalink
lodashLint
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Apr 1, 2022
1 parent 78413d9 commit 5eae86f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions superset-frontend/src/explore/exploreUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
getChartBuildQueryRegistry,
getChartMetadataRegistry,
} from '@superset-ui/core';
import { omit } from 'lodash';
import { availableDomains } from 'src/utils/hostNamesConfig';
import { safeStringify } from 'src/utils/safeStringify';
import { URL_PARAMS } from 'src/constants';
Expand Down Expand Up @@ -231,11 +232,9 @@ export const buildV1ChartDataPayload = ({
);
if (resultType === 'samples') {
// remove row limit and offset to fall back to defaults
payload.queries = payload.queries.map(query => ({
...query,
row_offset: null,
row_limit: null,
}));
payload.queries = payload.queries.map(query =>
omit(query, ['row_limit', 'row_offset']),
);
}
return payload;
};
Expand Down

0 comments on commit 5eae86f

Please sign in to comment.