@arsedizioni/ars-utils 21.2.294 → 21.2.296

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.
@@ -2392,14 +2392,12 @@ class ClipperBrowserComponent extends ClipperSearchResultManager {
2392
2392
  }
2393
2393
  });
2394
2394
  }
2395
- // Select the initial module or default to the first available
2396
- const initialMod = this.initialModule();
2397
- if (initialMod != null) {
2398
- this.moduleSelector()?.select(this.modules().find(x => x.value === initialMod) ?? this.modules()[0]);
2399
- }
2400
- else {
2401
- this.moduleSelector()?.select(this.modules()[0]);
2402
- }
2395
+ });
2396
+ // React to initialModule changes and select the corresponding module
2397
+ effect(() => {
2398
+ const initialModule = this.initialModule();
2399
+ const selector = this.moduleSelector();
2400
+ selector.select(this.modules().find(x => x.value === initialModule) ?? this.modules()[0]);
2403
2401
  });
2404
2402
  }
2405
2403
  /**