@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/cjs/index.js CHANGED
@@ -515,7 +515,9 @@ const TbFrame = ({ setting, top, bottom, nav, top_banner, hashmode = false, fram
515
515
  nav?.globalTabs?.forEach((item) => {
516
516
  p_tabList.push(item);
517
517
  });
518
- const isSameTabs = tabList.length === p_tabList.length && tabList.every((tab, idx) => tab.key === p_tabList[idx]?.key);
518
+ const isSameTabs = tabList.length === p_tabList.length &&
519
+ tabList.every((tab, idx) => tab.key === p_tabList[idx]?.key) &&
520
+ tabList.every((tab, idx) => tab.title === p_tabList[idx]?.title);
519
521
  if (!isSameTabs) {
520
522
  setTabList(p_tabList);
521
523
  }