Datasource cannot be empty (#3035)

This commit is contained in:
Rogan 2017-07-26 12:05:31 +08:00 committed by Maxime Beauchemin
parent 95509f2000
commit b301ba1f57

View File

@ -35,6 +35,7 @@ export const controls = {
isLoading: true, isLoading: true,
clearable: false, clearable: false,
default: null, default: null,
validators: [v.nonEmpty],
mapStateToProps: (state) => { mapStateToProps: (state) => {
const datasources = state.datasources || []; const datasources = state.datasources || [];
return { return {