@ngrdt/forms 0.0.42 → 0.0.44

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.
@@ -644,8 +644,12 @@ function getRdtSelectStore(initialState = rdtSelectInitialState) {
644
644
  }),
645
645
  })), withMethods((store) => ({
646
646
  init(initialValue) {
647
- this.setSelected(initialValue ?? []);
648
- patchState(store, { initialized: true });
647
+ if (initialValue && initialValue.length > 0) {
648
+ this.setSelected(initialValue ?? []);
649
+ }
650
+ else {
651
+ patchState(store, { initialized: true });
652
+ }
649
653
  },
650
654
  fetch() {
651
655
  const datasource = untracked(store.datasource);
@@ -858,6 +862,7 @@ function getRdtSelectStore(initialState = rdtSelectInitialState) {
858
862
  _fetchMissingRequest: null,
859
863
  _missingSelected: newMissing,
860
864
  selectedMap: newSelected,
865
+ initialized: true,
861
866
  });
862
867
  this._loadMissingSelected();
863
868
  });