From b301ba1f57b884248def367126a9a76e256c46b8 Mon Sep 17 00:00:00 2001 From: Rogan Date: Wed, 26 Jul 2017 12:05:31 +0800 Subject: [PATCH] Datasource cannot be empty (#3035) --- superset/assets/javascripts/explore/stores/controls.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/assets/javascripts/explore/stores/controls.jsx b/superset/assets/javascripts/explore/stores/controls.jsx index ecfbfe9e64..1fdf868df2 100644 --- a/superset/assets/javascripts/explore/stores/controls.jsx +++ b/superset/assets/javascripts/explore/stores/controls.jsx @@ -35,6 +35,7 @@ export const controls = { isLoading: true, clearable: false, default: null, + validators: [v.nonEmpty], mapStateToProps: (state) => { const datasources = state.datasources || []; return {