@ -137,6 +137,11 @@ namespace Squidex.Domain.Apps.Read.State.Grains
});
}
public void On(SchemaDeleted @event, EnvelopeHeaders headers)
{
Schemas.Remove(@event.SchemaId.Id);
public void On(WebhookAdded @event, EnvelopeHeaders headers)
UpdateSchema(@event, headers);
@ -426,7 +426,7 @@ export class NumberFieldPropertiesDto extends FieldPropertiesDto {
if (this.allowedValues && this.allowedValues.length > 0) {
validators.push(ValidatorsEx.validValues(this.allowedValues));
validators.push(ValidatorsEx.validValues(this.allowedValues.map(String)));
return validators;