Skip to content

Commit cbe2799

Browse files
committed
SVY-20362 Error when tabpanel with no tabs is present on responsive form
1 parent f198639 commit cbe2799

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tabpanel/tabpanel_server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ $scope.api.addTab = function(form, tabText, index) {
1919
}
2020

2121
$scope.api.getTabAt = function(index) {
22+
if (!$scope.model.tabs) return null;
2223
if (index > 0 && index <= $scope.model.tabs.length) {
2324
return $scope.model.tabs[index - 1];
2425
}

0 commit comments

Comments
 (0)