From ca2c761bde0f66bb7b563a9a077ede83ee752fea Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 2 Nov 2022 20:54:35 +0800 Subject: [PATCH] Skip alias type change check when type is not updated (#16270) --- api/src/services/fields.ts | 1 + 1 file changed, 1 insertion(+) 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');