Interactive interface for browsing global, full-resolution satellite imagery
fix palette loading issue when group is collapsed
Jason Kentaa292b1ba928
diff --git a/web/js/containers/sidebar/layer-list.js b/web/js/containers/sidebar/layer-list.jsindex 0a9f2de45..ec361e0b3 100644--- a/web/js/containers/sidebar/layer-list.js+++ b/web/js/containers/sidebar/layer-list.js@@ -169,25 +169,23 @@ function LayerList(props) {</div></div><DragDropContext onDragEnd={onDragEnd}>- {!collapsed && (- <Droppable- droppableId={`${compareState}-${groupId}`}- type={`layerGroup${groupId}`}- direction="vertical"- >- {(provided, snapshot) => (- <ul- className="category"- ref={provided.innerRef}+ <Droppable+ droppableId={`${compareState}-${groupId}`}+ type={`layerGroup${groupId}`}+ direction="vertical"+ >+ {(provided, snapshot) => (+ <ul+ className={collapsed ? 'category hidden' : 'category'}+ ref={provided.innerRef}// eslint-disable-next-line react/jsx-props-no-spreading- {...provided.droppableProps}- >- {layers.map(renderLayer)}- {provided.placeholder}- </ul>- )}- </Droppable>- )}+ {...provided.droppableProps}+ >+ {layers.map(renderLayer)}+ {provided.placeholder}+ </ul>+ )}+ </Droppable></DragDropContext></div>);