mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
table settings: disable unique id check in edit mode
This commit is contained in:
@@ -177,14 +177,17 @@ export const tableSettings = (
|
||||
}.`,
|
||||
disabled: mode === TableSettingsDialogModes.update,
|
||||
gridCols: { xs: 12, sm: 6 },
|
||||
validation: [
|
||||
[
|
||||
"test",
|
||||
"unique",
|
||||
"Another table exists with this ID",
|
||||
(value) => !_find(tables, ["value", value]),
|
||||
],
|
||||
],
|
||||
validation:
|
||||
mode === TableSettingsDialogModes.create
|
||||
? [
|
||||
[
|
||||
"test",
|
||||
"unique",
|
||||
"Another table exists with this ID",
|
||||
(value) => !_find(tables, ["value", value]),
|
||||
],
|
||||
]
|
||||
: [],
|
||||
},
|
||||
{
|
||||
step: "display",
|
||||
|
||||
Reference in New Issue
Block a user