File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import {
2727} from 'lib/Constants' ;
2828
2929function validColumnName ( name ) {
30- return ! ! name . match ( / ^ [ a - z A - Z 0 - 9 ] [ _ a - z A - Z 0 - 9 ] * $ / ) ;
30+ return ! ! name . match ( / ^ [ a - z A - Z ] [ _ a - z A - Z 0 - 9 ] * $ / ) ;
3131}
3232
3333export default class AddColumnDialog extends React . Component {
Original file line number Diff line number Diff line change @@ -280,7 +280,9 @@ class Browser extends DashboardView {
280280 required,
281281 defaultValue
282282 } ;
283- this . props . schema . dispatch ( ActionTypes . ADD_COLUMN , payload ) . finally ( ( ) => {
283+ this . props . schema . dispatch ( ActionTypes . ADD_COLUMN , payload ) . catch ( ( err ) => {
284+ this . showNote ( err . message , true ) ;
285+ } ) . finally ( ( ) => {
284286 this . setState ( { showAddColumnDialog : false } ) ;
285287 } ) ;
286288 }
You can’t perform that action at this time.
0 commit comments