react-shepherd 4.0.1 → 4.1.0

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.
@@ -6108,9 +6108,7 @@ var addSteps = function (steps, tour) {
6108
6108
  step.buttons = buttons.map(function (button) {
6109
6109
  var action = button.action, classes = button.classes, disabled = button.disabled, label = button.label, secondary = button.secondary, text = button.text, type = button.type;
6110
6110
  return {
6111
- // TypeScript doesn't have great support for dynamic method calls with
6112
- // bracket notation, so we use the `any` escape hatch
6113
- action: tour[type] || action,
6111
+ action: type ? tour[type] : action,
6114
6112
  classes: classes,
6115
6113
  disabled: disabled,
6116
6114
  label: label,