mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Various m2a builder fixes (#4032)
* Fix drawer opening empty item after sort * Fix null sorting * Fix sending null for a type in field creation * Fix sort / edit existing on sorted values in m2a builder Fixes #4005, fixes #4007 * Remove stray console log
This commit is contained in:
@@ -203,7 +203,7 @@ export class FieldsService {
|
||||
throw new InvalidPayloadException(`Field "${field.field}" already exists in collection "${collection}"`);
|
||||
}
|
||||
|
||||
if (ALIAS_TYPES.includes(field.type) === false) {
|
||||
if (field.type && ALIAS_TYPES.includes(field.type) === false) {
|
||||
if (table) {
|
||||
this.addColumnToTable(table, field as Field);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user