Skip to content

Commit 4e4afc6

Browse files
committed
fix condition on custom buttons
1 parent 08843ef commit 4e4afc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modebar/manage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = function manageModeBar(gd) {
5050
var customButtons = context.modeBarButtons;
5151
var buttonGroups;
5252

53-
if(Array.isArray(customButtons) && customButtons.length > 1) {
53+
if(Array.isArray(customButtons) && customButtons.length) {
5454
buttonGroups = fillCustomButton(customButtons);
5555
}
5656
else {

0 commit comments

Comments
 (0)