react-better-html 1.1.270 → 1.1.271

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/index.mjs CHANGED
@@ -7486,6 +7486,7 @@ var TabsComponent = forwardRef17(function Tabs({ tabs, name, accentColor, style
7486
7486
  const tabsGap = gap ?? (style === "box" ? theme2.styles.gap / 2 : 0);
7487
7487
  const [selectedTabId, setSelectedTabId] = useState13(() => {
7488
7488
  const selectedTabId2 = tabs[0];
7489
+ if (!selectedTabId2) return "";
7489
7490
  if (urlQuery) {
7490
7491
  const tabQueryValue = urlQuery.getQuery(name ?? defaultTabName);
7491
7492
  if (!tabQueryValue) return selectedTabId2.id;