File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -810,6 +810,7 @@ class App extends Component {
810
810
</ div >
811
811
) ;
812
812
}
813
+ const readOnly = tableauSettingsState . readOnly === 'true'
813
814
814
815
return (
815
816
< KeplerGlComponent
@@ -820,7 +821,7 @@ class App extends Component {
820
821
selectedSheet = { this . state . selectedSheet }
821
822
tableauSettings = { tableauSettingsState }
822
823
theme = { tableauSettingsState . theme }
823
- readOnly = { tableauSettingsState . readOnly === 'true' }
824
+ readOnly = { readOnly }
824
825
keplerConfig = { tableauSettingsState . keplerConfig }
825
826
mapboxAPIKey = {
826
827
tableauSettingsState . mapboxAPIKey
@@ -829,7 +830,7 @@ class App extends Component {
829
830
}
830
831
isLoading = { isLoading }
831
832
// persist state to tableau
832
- configCallBack = { this . configCallBack }
833
+ configCallBack = { readOnly ? null : this . configCallBack }
833
834
// interactivity
834
835
clickCallBack = { this . clickCallBack }
835
836
hoverCallBack = { this . hoverCallBack }
Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ class App extends Component {
101
101
}
102
102
103
103
handleConfigChange ( ) {
104
+ if ( typeof this . props . configCallBack !== 'function' ) {
105
+ return ;
106
+ }
107
+
104
108
const currentState = this . getMapConfig ( ) ;
105
109
if ( ! currentState ) {
106
110
return ;
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {combineReducers} from 'redux';
22
22
import { handleActions } from 'redux-actions' ;
23
23
import { routerReducer } from 'react-router-redux' ;
24
24
import keplerGlReducer , { visStateUpdaters } from 'kepler.gl/reducers' ;
25
- import { FILTER_TYPES } from 'kepler.gl/constants' ;
26
25
import { MAP_ID , DATA_ID } from './constants' ;
27
26
import { MARKER_SELECT } from './actions' ;
28
27
import { log } from './utils' ;
Original file line number Diff line number Diff line change 20
20
21
21
import { createStore , applyMiddleware , compose } from 'redux' ;
22
22
23
- import window from 'global/window' ;
24
23
import { taskMiddleware } from 'react-palm/tasks' ;
25
24
import { routerMiddleware } from 'react-router-redux' ;
26
25
import { hashHistory } from 'react-router' ;
27
26
import reducers from './reducers' ;
28
- import KeplerGlSchema from 'kepler.gl/schemas' ;
29
27
30
28
export const middlewares = [
31
29
taskMiddleware ,
You can’t perform that action at this time.
0 commit comments