mirror of
https://github.com/directus/directus.git
synced 2026-01-31 09:18:22 -05:00
Reset Length and Required if Field Type changes
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user