@@ -119,8 +119,8 @@ export default class BrowserTable extends React.Component {
119119 required,
120120 } ) ) ;
121121
122- let stickyLefts = [ ] ;
123- let handleLefts = [ ] ;
122+ const stickyLefts = [ ] ;
123+ const handleLefts = [ ] ;
124124 if (
125125 typeof this . props . freezeIndex === 'number' &&
126126 this . props . freezeIndex >= 0
@@ -565,33 +565,33 @@ export default class BrowserTable extends React.Component {
565565 'overflow-x' : this . props . isResizing ? 'hidden' : 'auto' ,
566566 } }
567567 >
568- < DataBrowserHeaderBar
569- selected = {
570- ! ! this . props . selection &&
571- ! ! this . props . data &&
572- Object . values ( this . props . selection ) . filter ( checked => checked ) . length ===
573- this . props . data . length
574- }
575- selectAll = { checked =>
576- this . props . data . forEach ( ( { id } ) => this . props . selectRow ( id , checked ) )
577- }
578- headers = { headers }
579- stickyLefts = { stickyLefts }
580- handleLefts = { handleLefts }
581- freezeIndex = { this . props . freezeIndex }
582- freezeColumns = { this . props . freezeColumns }
583- unfreezeColumns = { this . props . unfreezeColumns }
584- updateOrdering = { this . props . updateOrdering }
585- readonly = { ! ! this . props . relation || ! ! this . props . isUnique }
586- handleDragDrop = { this . props . handleHeaderDragDrop }
587- onResize = { this . props . handleResize }
588- onAddColumn = { this . props . onAddColumn }
589- preventSchemaEdits = { this . context . preventSchemaEdits }
590- isDataLoaded = { ! ! this . props . data }
591- setSelectedObjectId = { this . props . setSelectedObjectId }
592- setCurrent = { this . props . setCurrent }
593- setContextMenu = { this . props . setContextMenu }
594- />
568+ < DataBrowserHeaderBar
569+ selected = {
570+ ! ! this . props . selection &&
571+ ! ! this . props . data &&
572+ Object . values ( this . props . selection ) . filter ( checked => checked ) . length ===
573+ this . props . data . length
574+ }
575+ selectAll = { checked =>
576+ this . props . data . forEach ( ( { id } ) => this . props . selectRow ( id , checked ) )
577+ }
578+ headers = { headers }
579+ stickyLefts = { stickyLefts }
580+ handleLefts = { handleLefts }
581+ freezeIndex = { this . props . freezeIndex }
582+ freezeColumns = { this . props . freezeColumns }
583+ unfreezeColumns = { this . props . unfreezeColumns }
584+ updateOrdering = { this . props . updateOrdering }
585+ readonly = { ! ! this . props . relation || ! ! this . props . isUnique }
586+ handleDragDrop = { this . props . handleHeaderDragDrop }
587+ onResize = { this . props . handleResize }
588+ onAddColumn = { this . props . onAddColumn }
589+ preventSchemaEdits = { this . context . preventSchemaEdits }
590+ isDataLoaded = { ! ! this . props . data }
591+ setSelectedObjectId = { this . props . setSelectedObjectId }
592+ setCurrent = { this . props . setCurrent }
593+ setContextMenu = { this . props . setContextMenu }
594+ />
595595 { table }
596596 </ div >
597597 ) ;
0 commit comments