@realtek/core-theme 0.0.327 → 0.0.328

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.
package/dist-lib/index.js CHANGED
@@ -5596,11 +5596,16 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
5596
5596
  e && Ve(String(e));
5597
5597
  }
5598
5598
  }, [Be, Vn]), F(() => {
5599
- if (he === void 0 || !Vn.length || he === ht.current) return;
5600
- ht.current = he;
5601
- let e = Vn.find((e, t) => tm(em(e, t)) === tm(he)), t = e ? String(em(e, Vn.indexOf(e))) : "";
5602
- t && Ve((e) => t === e ? e : t);
5603
- }, [Vn, he]);
5599
+ if (he === void 0 || !Vn.length) return;
5600
+ let e = Vn.find((e, t) => tm(em(e, t)) === tm(he));
5601
+ if (!e) return;
5602
+ let t = String(em(e, Vn.indexOf(e)));
5603
+ (he !== ht.current || tm(Be) !== tm(t)) && (ht.current = he, Ve((e) => tm(e) === tm(t) ? e : t));
5604
+ }, [
5605
+ Be,
5606
+ Vn,
5607
+ he
5608
+ ]);
5604
5609
  let Hn = (e) => {
5605
5610
  let t = wn.map((e) => {
5606
5611
  let t = {};