diff --git a/api/src/services/fields.ts b/api/src/services/fields.ts index d695592f0b..89d0484987 100644 --- a/api/src/services/fields.ts +++ b/api/src/services/fields.ts @@ -364,6 +364,7 @@ export class FieldsService { if ( (hookAdjustedField.type === 'alias' || this.schema.collections[collection].fields[field.field].type === 'alias') && + hookAdjustedField.type && hookAdjustedField.type !== this.schema.collections[collection].fields[field.field].type ) { throw new InvalidPayloadException('Alias type cannot be changed');