@ngx-formly/core 6.1.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -894,7 +894,7 @@ class FormlyField {
894
894
  observeDeep(field, ['props'], () => field.options.detectChanges(field)),
895
895
  observeDeep(field.options, ['formState'], () => field.options.detectChanges(field)),
896
896
  ];
897
- for (const key of Object.keys(field._expressions)) {
897
+ for (const key of Object.keys(field._expressions || {})) {
898
898
  const expressionObserver = observe(field, ['_expressions', key], ({ currentValue, previousValue }) => {
899
899
  if (previousValue?.subscription) {
900
900
  previousValue.subscription.unsubscribe();
@@ -990,6 +990,9 @@ class FormlyForm {
990
990
  }
991
991
  /** The model to be represented by the form. */
992
992
  set model(model) {
993
+ if (this.config.extras.immutable && this._modelChangeValue === model) {
994
+ return;
995
+ }
993
996
  this.setField({ model });
994
997
  }
995
998
  get model() {