diff --git a/js/components/App.js b/js/components/App.js index d26e85a0..ccd4c556 100644 --- a/js/components/App.js +++ b/js/components/App.js @@ -26,32 +26,31 @@ const App = ({ } const windows = objectMap(genWindowsInfo, (w, id) => { + if (!w.open) { + return null; + } switch (id) { case "main": - return ( - w.open && - ); + return ; case "equalizer": - return w.open && ; + return ; case "playlist": - return w.open && ; + return ; default: if (!w.generic) { throw new Error("Tried to render an unknown window:", id); } const Component = genWindowComponents[id]; return ( - w.open && ( - - {({ height, width }) => ( - - )} - - ) + + {({ height, width }) => ( + + )} + ); } });