@@ -103,11 +103,11 @@ class Browser extends DashboardView {
103
103
draggedRowSelection : false ,
104
104
105
105
classes : { } ,
106
- AllclassesSchema : { }
106
+ allClassesSchema : { }
107
107
} ;
108
108
109
109
this . addLocation = this . addLocation . bind ( this ) ;
110
- this . AllclassesSchema = this . getAllclassesSchema . bind ( this ) ;
110
+ this . allClassesSchema = this . getAllClassesSchema . bind ( this ) ;
111
111
this . removeLocation = this . removeLocation . bind ( this ) ;
112
112
this . prefetchData = this . prefetchData . bind ( this ) ;
113
113
this . fetchData = this . fetchData . bind ( this ) ;
@@ -229,7 +229,7 @@ class Browser extends DashboardView {
229
229
if ( ! nextProps . params . className && nextProps . schema . data . get ( 'classes' ) ) {
230
230
const t = nextProps . schema . data . get ( 'classes' ) ;
231
231
this . classes = Object . keys ( t . toObject ( ) ) ;
232
- this . AllclassesSchema = this . getAllclassesSchema ( this . classes , nextProps . schema . data . get ( 'classes' ) ) ;
232
+ this . allClassesSchema = this . getAllClassesSchema ( this . classes , nextProps . schema . data . get ( 'classes' ) ) ;
233
233
this . redirectToFirstClass ( nextProps . schema . data . get ( 'classes' ) , nextContext ) ;
234
234
}
235
235
}
@@ -758,10 +758,10 @@ class Browser extends DashboardView {
758
758
}
759
759
}
760
760
761
- getAllclassesSchema ( Allclasses , allclassesdata ) {
761
+ getAllClassesSchema ( allClasses , allClassesData ) {
762
762
const schemaSimplifiedData = { } ;
763
- Allclasses . forEach ( ( className ) => {
764
- const classSchema = allclassesdata . get ( className ) ;
763
+ allClasses . forEach ( ( className ) => {
764
+ const classSchema = allClassesData . get ( className ) ;
765
765
if ( classSchema ) {
766
766
schemaSimplifiedData [ className ] = { } ;
767
767
classSchema . forEach ( ( { type, targetClass } , col ) => {
@@ -797,9 +797,9 @@ class Browser extends DashboardView {
797
797
}
798
798
}
799
799
800
- async fetchParseData ( source , filters , AllclassesSchema ) {
800
+ async fetchParseData ( source , filters ) {
801
801
const { useMasterKey } = this . state ;
802
- const query = await queryFromFilters ( source , filters , AllclassesSchema ) ;
802
+ const query = await queryFromFilters ( source , filters ) ;
803
803
const sortDir = this . state . ordering [ 0 ] === '-' ? '-' : '+' ;
804
804
const field = this . state . ordering . substr ( sortDir === '-' ? 1 : 0 ) ;
805
805
@@ -839,15 +839,15 @@ class Browser extends DashboardView {
839
839
}
840
840
}
841
841
842
- async fetchParseDataCount ( source , filters , AllclassesSchema ) {
843
- const query = await queryFromFilters ( source , filters , AllclassesSchema ) ;
842
+ async fetchParseDataCount ( source , filters ) {
843
+ const query = await queryFromFilters ( source , filters ) ;
844
844
const { useMasterKey } = this . state ;
845
845
const count = await query . count ( { useMasterKey } ) ;
846
846
return count ;
847
847
}
848
848
849
849
async fetchData ( source , filters = new List ( ) ) {
850
- const data = await this . fetchParseData ( source , filters , this . AllclassesSchema ) ;
850
+ const data = await this . fetchParseData ( source , filters ) ;
851
851
const filteredCounts = { ...this . state . filteredCounts } ;
852
852
if ( filters . size > 0 ) {
853
853
if ( this . state . isUnique ) {
0 commit comments