Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Chore] export action creator (#2315)

Igor D69ce4d0636ff
diff --git a/src/components/src/index.ts b/src/components/src/index.ts
index e0ac62703..259a8f995 100644
--- a/src/components/src/index.ts
+++ b/src/components/src/index.ts
@@ -39,7 +39,7 @@ import {appInjector} from './container';
export {default as KeplerGl, default, injectComponents, ContainerFactory, ERROR_MSG} from './container';
// factories
-export {default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS, getVisibleDatasets, mapFieldsSelector, plotContainerSelector} from './kepler-gl';
+export {default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS, getVisibleDatasets, makeGetActionCreators, mapFieldsSelector, plotContainerSelector} from './kepler-gl';
export {default as SidePanelFactory} from './side-panel';
export {default as PanelTitleFactory} from './side-panel/panel-title';
export {default as MapContainerFactory, Attribution} from './map-container';
diff --git a/src/components/src/kepler-gl.tsx b/src/components/src/kepler-gl.tsx
index 3fab0c241..b2dce916c 100644
--- a/src/components/src/kepler-gl.tsx
+++ b/src/components/src/kepler-gl.tsx
@@ -742,7 +742,7 @@ const getDispatch = (dispatch, props) => dispatch;
const getUserActions = (dispatch, props) => props.actions || defaultUserActions;
/** @type {() => import('reselect').OutputParametricSelector<any, any, any, any>} */
-function makeGetActionCreators() {
+export function makeGetActionCreators() {
return createSelector([getDispatch, getUserActions], (dispatch, userActions) => {
const [visStateActions, mapStateActions, mapStyleActions, uiStateActions, providerActions] = [
VisStateActions,
diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsx
index 018d3cf7d..6c7949e9d 100644
--- a/src/components/src/map-container.tsx
+++ b/src/components/src/map-container.tsx
@@ -158,7 +158,8 @@ export const isSplitSelector = props =>
export const Droppable = ({containerId}) => {
const {isOver, setNodeRef} = useDroppable({
id: containerId,
- data: {type: 'map', index: containerId}
+ data: {type: 'map', index: containerId},
+ disabled: !containerId
});
return <StyledDroppable ref={setNodeRef} isOver={isOver} />;