From e004e701737718f010978b0830d64bf8e1d8c559 Mon Sep 17 00:00:00 2001 From: Davide Quattrocchi Date: Thu, 10 Feb 2022 13:11:03 +0100 Subject: [PATCH] fix: adding internal class (e.g. `_User`) fails due to prefixed underscore (#2036) --- src/dashboard/Data/Browser/CreateClassDialog.react.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dashboard/Data/Browser/CreateClassDialog.react.js b/src/dashboard/Data/Browser/CreateClassDialog.react.js index 49256390be..6f17b7c178 100644 --- a/src/dashboard/Data/Browser/CreateClassDialog.react.js +++ b/src/dashboard/Data/Browser/CreateClassDialog.react.js @@ -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 ?