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 {
27
27
} from 'lib/Constants' ;
28
28
29
29
function 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 ] * $ / ) ;
31
31
}
32
32
33
33
export default class AddColumnDialog extends React . Component {
Original file line number Diff line number Diff line change @@ -280,7 +280,9 @@ class Browser extends DashboardView {
280
280
required,
281
281
defaultValue
282
282
} ;
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 ( ( ) => {
284
286
this . setState ( { showAddColumnDialog : false } ) ;
285
287
} ) ;
286
288
}
You can’t perform that action at this time.
0 commit comments