We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee0ae6 commit 39396ffCopy full SHA for 39396ff
src/dashboard/Data/Browser/AddColumnDialog.react.js
@@ -27,7 +27,7 @@ import {
27
} from 'lib/Constants';
28
29
function validColumnName(name) {
30
- return !!name.match(/^[a-zA-Z0-9][_a-zA-Z0-9]*$/);
+ return !!name.match(/^[a-zA-Z][_a-zA-Z0-9]*$/);
31
}
32
33
export default class AddColumnDialog extends React.Component {
src/dashboard/Data/Browser/Browser.react.js
@@ -280,7 +280,9 @@ class Browser extends DashboardView {
280
required,
281
defaultValue
282
};
283
- this.props.schema.dispatch(ActionTypes.ADD_COLUMN, payload).finally(() => {
+ this.props.schema.dispatch(ActionTypes.ADD_COLUMN, payload).catch((err) => {
284
+ this.showNote(err.message, true);
285
+ }).finally(() => {
286
this.setState({ showAddColumnDialog: false });
287
});
288
0 commit comments