@harbor-design/proform 1.2.15 → 1.2.17

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -225,9 +225,10 @@ class be {
225
225
  });
226
226
  }
227
227
  resetModel() {
228
- this.runtimeCore.model.value = P(
228
+ var e;
229
+ (e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = P(
229
230
  this.runtimeCore.processor.stableModel
230
- );
231
+ ));
231
232
  }
232
233
  }
233
234
  class L {
@@ -462,7 +463,7 @@ class ve {
462
463
  modelProcessor(e) {
463
464
  e.map(
464
465
  (t) => this.createModel(t, this.processedModel.value)
465
- ), l.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (console.log("done once"), this.stableModel = P(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
466
+ ), l.isObjectEmpty(this.stableModel) && this.stableUpdaterProcessProgress.every(Boolean) && this.defaultValueEffect.effects.size === 0 && (this.stableModel = P(this.processedModel.value), this.runtimeCore.hydrateEffect.triggerEffects(), this.runtimeCore.hydrateEffect.clearEffects());
466
467
  }
467
468
  createModel(e, t) {
468
469
  l.isListSchema(e) && (t[e.field] || (t[e.field] = [{}]), e.children.forEach((s) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",