Fixing the build

This commit is contained in:
Maxime Beauchemin
2017-02-21 08:35:16 -08:00
parent 7cad3655f5
commit 85e6e65a47

View File

@@ -65,7 +65,7 @@ export const fields = {
multi: true,
label: 'Metrics',
validators: [v.nonEmpty],
default: field => field.choices && field.choices.length > 0 ? [field.choices[0][0]] : null,
default: field => field.choices && field.choices.length > 0 ? [field.choices[0][0]] : null,
mapStateToProps: (state) => ({
choices: (state.datasource) ? state.datasource.metrics_combo : [],
}),