mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: page size options 'all' correct in table and remove PAGE_SIZE_OPTIONS in handlebars (#35095)
This commit is contained in:
@@ -17,23 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { debounce } from 'lodash';
|
||||
import { formatSelectOptions } from '@superset-ui/chart-controls';
|
||||
import { Constants } from '@superset-ui/core/components';
|
||||
import { t } from '@superset-ui/core';
|
||||
|
||||
export const PAGE_SIZE_OPTIONS = formatSelectOptions<number>([
|
||||
[0, t('page_size.all')],
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
10,
|
||||
20,
|
||||
50,
|
||||
100,
|
||||
200,
|
||||
]);
|
||||
|
||||
export const debounceFunc = debounce(
|
||||
(func: (val: string) => void, source: string) => func(source),
|
||||
|
||||
Reference in New Issue
Block a user