@thefreshop/tb 1.1.0 → 1.1.1

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/esm/index.js CHANGED
@@ -495,7 +495,9 @@ const TbFrame = ({ setting, top, bottom, nav, top_banner, hashmode = false, fram
495
495
  nav?.globalTabs?.forEach((item) => {
496
496
  p_tabList.push(item);
497
497
  });
498
- const isSameTabs = tabList.length === p_tabList.length && tabList.every((tab, idx) => tab.key === p_tabList[idx]?.key);
498
+ const isSameTabs = tabList.length === p_tabList.length &&
499
+ tabList.every((tab, idx) => tab.key === p_tabList[idx]?.key) &&
500
+ tabList.every((tab, idx) => tab.title === p_tabList[idx]?.title);
499
501
  if (!isSameTabs) {
500
502
  setTabList(p_tabList);
501
503
  }