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.js CHANGED
@@ -7525,6 +7525,7 @@ var TabsComponent = (0, import_react29.forwardRef)(function Tabs({ tabs, name, a
7525
7525
  const tabsGap = gap ?? (style === "box" ? theme2.styles.gap / 2 : 0);
7526
7526
  const [selectedTabId, setSelectedTabId] = (0, import_react29.useState)(() => {
7527
7527
  const selectedTabId2 = tabs[0];
7528
+ if (!selectedTabId2) return "";
7528
7529
  if (urlQuery) {
7529
7530
  const tabQueryValue = urlQuery.getQuery(name ?? defaultTabName);
7530
7531
  if (!tabQueryValue) return selectedTabId2.id;