diff --git a/app/javascript/gabsocial/components/navigation_bar.js b/app/javascript/gabsocial/components/navigation_bar.js index 1e1c51ed..d6c340fd 100644 --- a/app/javascript/gabsocial/components/navigation_bar.js +++ b/app/javascript/gabsocial/components/navigation_bar.js @@ -195,7 +195,8 @@ class NavigationBar extends ImmutablePureComponent { isNarrow backgroundColor='none' color='primary' - onClick={() => action.onClick()} + to={action.to || undefined} + onClick={action.onClick ? () => action.onClick() : undefined} key={`action-btn-${i}`} className={[_s.ml5, _s.height53PX, _s.justifyContentCenter, _s.px5].join(' ')} icon={action.icon}