Commit b8c3e745 authored by Imran Salam's avatar Imran Salam
Browse files

fix track panel not toggling properly

parent 0a58bc54
......@@ -122,9 +122,12 @@ export function trackPanel(
): TrackPanelState {
switch (action.type) {
case getType(browserActions.toggleTrackPanel):
const trackPanelOpened =
action.payload === undefined ? !state.trackPanelOpened : action.payload;
return {
...state,
trackPanelOpened: action.payload
trackPanelOpened
};
case getType(browserActions.openTrackPanelModal):
return {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment