mirror of
https://github.com/directus/directus.git
synced 2026-01-23 11:47:59 -05:00
Skip alias type change check when type is not updated (#16270)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user