Skip to content

Commit 2853d83

Browse files
davimacedodouglasmuraoka
authored andcommitted
Fix: Filter tab not working for classes starting with _ (#1275)
1 parent 902cf7f commit 2853d83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/dashboard/Data/Browser/BrowserToolbar.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Toolbar from 'components/Toolbar/Toolbar.react';
2020

2121
let BrowserToolbar = ({
2222
className,
23-
classNameForPermissionsEditor,
23+
classNameForEditors,
2424
count,
2525
perms,
2626
schema,
@@ -145,7 +145,7 @@ let BrowserToolbar = ({
145145

146146
const userPointers = [];
147147
const schemaSimplifiedData = {};
148-
const classSchema = schema.data.get('classes').get(className);
148+
const classSchema = schema.data.get('classes').get(classNameForEditors);
149149
if (classSchema) {
150150
classSchema.forEach(({ type, targetClass }, col) => {
151151
if (name === 'objectId' || isUnique && name !== uniqueField) {
@@ -189,13 +189,13 @@ let BrowserToolbar = ({
189189
schema={schemaSimplifiedData}
190190
filters={filters}
191191
onChange={onFilterChange}
192-
className={className} />
192+
className={classNameForEditors} />
193193
<div className={styles.toolbarSeparator} />
194194
{enableSecurityDialog ? <SecurityDialog
195195
setCurrent={setCurrent}
196196
disabled={!!relation || !!isUnique}
197197
perms={perms}
198-
className={classNameForPermissionsEditor}
198+
className={classNameForEditors}
199199
onChangeCLP={onChangeCLP}
200200
userPointers={userPointers} /> : <noscript />}
201201
{enableSecurityDialog ? <div className={styles.toolbarSeparator} /> : <noscript/>}

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default class DataBrowser extends React.Component {
235235
count={count}
236236
hidePerms={className === '_Installation'}
237237
className={SpecialClasses[className] || className}
238-
classNameForPermissionsEditor={className}
238+
classNameForEditors={className}
239239
setCurrent={this.setCurrent}
240240
enableDeleteAllRows={this.context.currentApp.serverInfo.features.schemas.clearAllDataFromClass && !preventSchemaEdits}
241241
enableExportClass={this.context.currentApp.serverInfo.features.schemas.exportClass && !preventSchemaEdits}

0 commit comments

Comments
 (0)