Skip to content

Commit

Permalink
fix: adding internal class (e.g. _User) fails due to prefixed under…
Browse files Browse the repository at this point in the history
…score (#2036)
  • Loading branch information
KodeDave authored Feb 10, 2022
1 parent 7bfdad4 commit f80bd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dashboard/Data/Browser/CreateClassDialog.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ export default class CreateClassDialog extends React.Component {
showContinue={true}
onContinue={async () => {
let type = this.state.type;
let className = type === 'Custom' ? this.state.name : '_' + type;
let className = type === 'Custom' ? this.state.name : type;
await this.props.onConfirm(className);
history.push(`/apps/${this.props.currentAppSlug}/browser/${className}`);
this.props.onAddColumn();
}}
onConfirm={() => {
let type = this.state.type;
let className = type === 'Custom' ? this.state.name : '_' + type;
let className = type === 'Custom' ? this.state.name : type;
this.props.onConfirm(className);
}}>
{availableClasses.length > 1 ?
Expand Down

0 comments on commit f80bd07

Please sign in to comment.