Skip to content

Commit b77a9a7

Browse files
author
pera
committed
Fixed issue related to xmartlabs#338
1 parent 7ff9ed7 commit b77a9a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/ButtonBarPagerTabStripViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa
258258
return (indexPath.item >= 0 && indexPath.item < buttonBarView.numberOfItems(inSection: indexPath.section)) ? indexPath : nil
259259
}
260260

261-
buttonBarView.reloadItems(at: indexPathsToReload)
261+
if !indexPathsToReload.isEmpty {
262+
buttonBarView.reloadItems(at: indexPathsToReload)
263+
}
262264
}
263265

264266
return cells

0 commit comments

Comments
 (0)