Fix increment being deleted when type is updated
This commit is contained in:
parent
84abae7d06
commit
a459f36f58
@ -89,7 +89,8 @@ export default function TableField({ data, tid, index }) {
|
|||||||
]);
|
]);
|
||||||
setRedoStack([]);
|
setRedoStack([]);
|
||||||
const incr =
|
const incr =
|
||||||
data.increment && dbToTypes[database][value].canIncrement;
|
data.increment && !!dbToTypes[database][value].canIncrement;
|
||||||
|
|
||||||
if (value === "ENUM" || value === "SET") {
|
if (value === "ENUM" || value === "SET") {
|
||||||
updateField(tid, index, {
|
updateField(tid, index, {
|
||||||
type: value,
|
type: value,
|
||||||
|
Loading…
Reference in New Issue
Block a user