@plasmicapp/react-web 0.2.184 → 0.2.185

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.
@@ -2902,7 +2902,7 @@ function useDollarState(specs) {
2902
2902
  }
2903
2903
  // we need to eager initialize all states in canvas to populate the data picker
2904
2904
  $$state.specTreeLeaves.forEach(function (node) {
2905
- var _newSpec$initFuncHash;
2905
+ var _newSpec$initFuncHash, _newSpec$initFuncHash2;
2906
2906
  var spec = node.getSpec();
2907
2907
  if (spec.isRepeated) {
2908
2908
  return;
@@ -2911,11 +2911,11 @@ function useDollarState(specs) {
2911
2911
  var newSpec = specs.find(function (sp) {
2912
2912
  return sp.path === spec.path;
2913
2913
  });
2914
- if (!newSpec || stateCell.initFuncHash === (newSpec == null ? void 0 : newSpec.initFuncHash) || stateCell.initialValue !== UNINITIALIZED) {
2914
+ if (!newSpec || stateCell.initFuncHash === ((_newSpec$initFuncHash = newSpec == null ? void 0 : newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "") && stateCell.initialValue !== UNINITIALIZED) {
2915
2915
  return;
2916
2916
  }
2917
2917
  stateCell.initFunc = newSpec.initFunc;
2918
- stateCell.initFuncHash = (_newSpec$initFuncHash = newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "";
2918
+ stateCell.initFuncHash = (_newSpec$initFuncHash2 = newSpec.initFuncHash) != null ? _newSpec$initFuncHash2 : "";
2919
2919
  var init = spec.valueProp ? $$state.env.$props[spec.valueProp] : spec.initFunc ? initializeStateValue($$state, stateCell, $state) : spec.initVal;
2920
2920
  set($state, spec.pathObj, init);
2921
2921
  });