@knovator/pagecreator 0.9.0 → 0.9.3
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/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -557,7 +557,7 @@ function TabWidget(_ref) {
|
|
|
557
557
|
}, /*#__PURE__*/React.createElement(TabList, null, widgetData.tabs.map(function (tab, index) {
|
|
558
558
|
return /*#__PURE__*/React.createElement(Tab, {
|
|
559
559
|
key: index
|
|
560
|
-
}, formatTabTitle(tab.name, tab.collectionItems, activeTab === index));
|
|
560
|
+
}, formatTabTitle(tab.name || tab.names, tab.collectionItems, activeTab === index));
|
|
561
561
|
})), widgetData.tabs.map(function (tab, index) {
|
|
562
562
|
return /*#__PURE__*/React.createElement(TabPanel, {
|
|
563
563
|
key: index
|
|
@@ -616,7 +616,7 @@ function Widget(_ref) {
|
|
|
616
616
|
};
|
|
617
617
|
var formatTabTitles = function formatTabTitles(title, collectionData, isActive) {
|
|
618
618
|
if (typeof formatTabTitle === 'function' && formatTabTitle) return formatTabTitle(title, collectionData, isActive);
|
|
619
|
-
return /*#__PURE__*/React.createElement("div", null, title);
|
|
619
|
+
return /*#__PURE__*/React.createElement("div", null, typeof title === 'string' ? title : JSON.stringify(title));
|
|
620
620
|
};
|
|
621
621
|
if (!widgetData) return null;
|
|
622
622
|
return /*#__PURE__*/React.createElement("div", {
|