X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2FCatalogPanel.js;h=0314e19ff4a99b3e8939d5fcdc9d38841cab2660;hb=bc5076404f6dfea979b370f29b1db2e0a1505349;hp=535a928b41bbb111c45daf9a7884d30a460982fb;hpb=e29efc315df33d546237e270470916e26df391d6;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/CatalogPanel.js b/skyquake/plugins/composer/src/src/components/CatalogPanel.js index 535a928b4..0314e19ff 100644 --- a/skyquake/plugins/composer/src/src/components/CatalogPanel.js +++ b/skyquake/plugins/composer/src/src/components/CatalogPanel.js @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,7 +18,7 @@ */ 'use strict'; -import _ from 'lodash' +import _includes from 'lodash/includes' import React from 'react' import ReactDOM from 'react-dom' import messages from './messages' @@ -167,7 +167,7 @@ const CatalogPanel = React.createClass({ uiTransientState.isDrop = false; uiTransientState.isDragging = true; uiTransientState.wasTrayOpen = this.state.isTrayOpen; - uiTransientState.isDraggingFiles = _.contains(e.dataTransfer.types, 'Files'); + uiTransientState.isDraggingFiles = _includes(e.dataTransfer.types, 'Files'); const dragState = ComposerAppStore.getState().drag || {}; if (uiTransientState.isDraggingFiles || (dragState.type === 'catalog-item')) { CatalogPanelTrayActions.open();