Skip to content

Commit

Permalink
CB-4606 apply min validation to the fetch settings (#2396)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgenia Bezborodova <[email protected]>
  • Loading branch information
devnaumov and EvgeniaBzzz authored Feb 21, 2024
1 parent 5182ea1 commit 307808a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import { DATA_EDITOR_SETTINGS_GROUP } from './DATA_EDITOR_SETTINGS_GROUP';
const defaultSettings = schema.object({
disableEdit: schema.coerce.boolean().default(false),
disableCopyData: schema.coerce.boolean().default(false),
fetchMin: schema.coerce.number().default(100),
fetchMax: schema.coerce.number().default(5000),
fetchDefault: schema.coerce.number().default(200),
fetchMin: schema.coerce.number().min(10).default(100),
fetchMax: schema.coerce.number().min(10).default(5000),
fetchDefault: schema.coerce.number().min(10).default(200),
});

export type DataViewerSettings = schema.infer<typeof defaultSettings>;
Expand Down

0 comments on commit 307808a

Please sign in to comment.