You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2017/07/26 04:05:33 UTC

[incubator-superset] branch master updated: Datasource cannot be empty (#3035)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new b301ba1  Datasource cannot be empty (#3035)
b301ba1 is described below

commit b301ba1f57b884248def367126a9a76e256c46b8
Author: Rogan <qu...@gmail.com>
AuthorDate: Wed Jul 26 12:05:31 2017 +0800

    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 ecfbfe9..1fdf868 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 {

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].