mirror of
https://github.com/apache/superset.git
synced 2026-07-30 02:22:31 +00:00
fix(drill-detail): prettier + fix rowLimitOptions type error
- Prettier collapses import line in test - rowLimitOptions is optional so coerce to [] for Select Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,9 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { render, screen, userEvent } from 'spec/helpers/testing-library';
|
||||
import TableControls, {
|
||||
TableControlsProps,
|
||||
} from './DrillDetailTableControls';
|
||||
import TableControls, { TableControlsProps } from './DrillDetailTableControls';
|
||||
|
||||
const setFilters = jest.fn();
|
||||
const onReload = jest.fn();
|
||||
|
||||
@@ -105,7 +105,7 @@ export const TableControls = ({
|
||||
<Select
|
||||
value={rowLimit}
|
||||
onChange={onRowLimitChange}
|
||||
options={rowLimitOptions}
|
||||
options={rowLimitOptions ?? []}
|
||||
size="small"
|
||||
css={css`
|
||||
min-width: 110px;
|
||||
|
||||
Reference in New Issue
Block a user