@@ -8,7 +8,7 @@ import {FormPanel} from '../../ui/FormPanel.jsx';
8
8
import { get , merge , isEmpty , isFunction } from 'lodash' ;
9
9
import { updateMerge } from '../../util/WebUtil.js' ;
10
10
import { ListBoxInputField } from '../../ui/ListBoxInputField.jsx' ;
11
- import { doFetchTable , makeTblRequest , makeIrsaCatalogRequest , makeVOCatalogRequest , getTblIdsByGroup } from '../../tables/TableUtil.js' ;
11
+ import { doFetchTable , makeTblRequest , makeIrsaCatalogRequest , makeVOCatalogRequest } from '../../tables/TableUtil.js' ;
12
12
import { CatalogTableListField } from './CatalogTableListField.jsx' ;
13
13
import { CatalogConstraintsPanel } from './CatalogConstraintsPanel.jsx' ;
14
14
import { FieldGroup } from '../../ui/FieldGroup.jsx' ;
@@ -217,18 +217,17 @@ function doCatalog(request) {
217
217
}
218
218
219
219
//console.log('final request: ' + JSON.stringify(tReq));
220
- if ( ! isEmpty ( getTblIdsByGroup ( ) ) ) { // triview has table already, reset the chart column select form values
221
- const chartHandler = { [ SCATTER ] : XYPlotSetOptions ,
222
- [ HISTOGRAM ] : HistogramSetOptions } ;
220
+ //reset column select dropdown value if there is the field group
221
+ const chartHandler = { [ SCATTER ] : XYPlotSetOptions ,
222
+ [ HISTOGRAM ] : HistogramSetOptions } ;
223
223
224
- Object . keys ( chartHandler ) . forEach ( ( chartType ) => {
225
- const formGroupName = getFormName ( chartType ) ;
224
+ Object . keys ( chartHandler ) . forEach ( ( chartType ) => {
225
+ const formGroupName = getFormName ( chartType ) ;
226
226
227
- if ( ! isEmpty ( FieldGroupUtils . getGroupFields ( formGroupName ) ) ) {
228
- chartHandler [ chartType ] ( formGroupName ) ;
229
- }
230
- } ) ;
231
- }
227
+ if ( ! isEmpty ( FieldGroupUtils . getGroupFields ( formGroupName ) ) ) {
228
+ chartHandler [ chartType ] ( formGroupName ) ;
229
+ }
230
+ } ) ;
232
231
dispatchTableSearch ( tReq ) ;
233
232
}
234
233
0 commit comments