Skip to content

Commit 8c1fdcb

Browse files
SBIN2010sadpandajoe
authored andcommitted
fix: page size options 'all' correct in table and remove PAGE_SIZE_OPTIONS in handlebars (#35095)
(cherry picked from commit 06261f2)
1 parent eb2b4bf commit 8c1fdcb

File tree

2 files changed

+1
-17
lines changed
  • superset-frontend/plugins

2 files changed

+1
-17
lines changed

superset-frontend/plugins/plugin-chart-handlebars/src/consts.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,7 @@
1717
* under the License.
1818
*/
1919
import { debounce } from 'lodash';
20-
import { formatSelectOptions } from '@superset-ui/chart-controls';
2120
import { Constants } from '@superset-ui/core/components';
22-
import { t } from '@superset-ui/core';
23-
24-
export const PAGE_SIZE_OPTIONS = formatSelectOptions<number>([
25-
[0, t('page_size.all')],
26-
1,
27-
2,
28-
3,
29-
4,
30-
5,
31-
10,
32-
20,
33-
50,
34-
100,
35-
200,
36-
]);
3721

3822
export const debounceFunc = debounce(
3923
(func: (val: string) => void, source: string) => func(source),

superset-frontend/plugins/plugin-chart-table/src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { formatSelectOptions } from '@superset-ui/chart-controls';
2020
import { t } from '@superset-ui/core';
2121

2222
export const PAGE_SIZE_OPTIONS = formatSelectOptions<number>([
23-
[0, t('page_size.all')],
23+
[0, t('All')],
2424
10,
2525
20,
2626
50,

0 commit comments

Comments
 (0)