Reset Length and Required if Field Type changes

This commit is contained in:
Nicola Krumschmidt
2020-12-28 00:34:46 +01:00
parent f1f326d1d2
commit 211898776e

View File

@@ -873,6 +873,8 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
state.fieldData.meta.display_options = null;
state.fieldData.meta.special = null;
state.fieldData.schema.default_value = undefined;
state.fieldData.schema.max_length = undefined;
state.fieldData.schema.is_nullable = true;
switch (state.fieldData.type) {
case 'uuid':