@@ -112,43 +112,43 @@ const NestedRows = ({
112112 const rowData = row . original || row ;
113113 return (
114114 < React . Fragment key = { String ( rowData . id ) } >
115- { editingRowId === `${ row . original . id } :${ String ( row . original . value ) } ` ? (
116- < EditRow
117- draftError = { draftError }
118- setDraftError = { setDraftError }
119- initialValue = { String ( row . original . value ) }
120- handleUpdateRow = { ( value ) => handleUpdateRow ( value , String ( row . original . value ) ) }
121- cancelEditRow = { ( ) => {
122- setEditingRowId ( null ) ;
123- exitDraftWithoutSave ( ) ;
124- } }
125- updateRowMutation = { updateRowMutation }
126- indent = { indent }
127- validate = { validate }
128- row = { row }
129- />
130- ) : (
131- < tr >
132- { row . getVisibleCells ( )
133- . map ( ( cell , index ) => {
134- const content = flexRender ( cell . column . columnDef . cell , cell . getContext ( ) ) ;
135- const isFirstColumn = index === 0 ;
115+ { editingRowId === `${ row . original . id } :${ String ( row . original . value ) } ` ?
116+ (
117+ < EditRow
118+ draftError = { draftError }
119+ setDraftError = { setDraftError }
120+ initialValue = { String ( row . original . value ) }
121+ handleUpdateRow = { ( value ) => handleUpdateRow ( value , String ( row . original . value ) ) }
122+ cancelEditRow = { ( ) => {
123+ setEditingRowId ( null ) ;
124+ exitDraftWithoutSave ( ) ;
125+ } }
126+ updateRowMutation = { updateRowMutation }
127+ indent = { indent }
128+ validate = { validate }
129+ row = { row }
130+ />
131+ ) :
132+ (
133+ < tr >
134+ { row . getVisibleCells ( )
135+ . map ( ( cell , index ) => {
136+ const content = flexRender ( cell . column . columnDef . cell , cell . getContext ( ) ) ;
137+ const isFirstColumn = index === 0 ;
136138
137- return (
138- < td
139- key = { cell . id }
140- className = "p-1 tree-table-overflow-anywhere"
141- >
142- { isFirstColumn ? (
143- < div className = { `tree-table-indent tree-table-indent-${ indent } ` } > { content } </ div >
144- ) : (
145- content
146- ) }
147- </ td >
148- ) ;
149- } ) }
150- </ tr >
151- ) }
139+ return (
140+ < td
141+ key = { cell . id }
142+ className = "p-1 tree-table-overflow-anywhere"
143+ >
144+ { isFirstColumn ?
145+ < div className = { `tree-table-indent tree-table-indent-${ indent } ` } > { content } </ div > :
146+ content }
147+ </ td >
148+ ) ;
149+ } ) }
150+ </ tr >
151+ ) }
152152 < NestedRows
153153 parentRow = { row }
154154 childRowsData = { row . subRows as TreeRow [ ] }
0 commit comments