File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
app/src/components/StateManagement/CreateTab/components Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const Table3 = props => {
20
20
const currentComponent = state . components [ currentId - 1 ] ;
21
21
console . log ( { currentComponent} ) ;
22
22
const passedInProps = currentComponent . name !== 'App' ? currentComponent . passedInProps : '' ;
23
+
23
24
const columnTabs = [
24
25
{
25
26
field : 'id' ,
@@ -104,6 +105,7 @@ const Table3 = props => {
104
105
}
105
106
106
107
} , [ state . canvasFocus . componentId ] ) ;
108
+ let rows = passedInProps ;
107
109
// rows to show are either from current component or from a given provider
108
110
// legacy pd convert parent props into a row array
109
111
// if (!props.providerId) {
@@ -131,15 +133,18 @@ const Table3 = props => {
131
133
132
134
return (
133
135
< div className = { 'state-prop-grid' } >
134
- < DataGrid
135
- rows = { passedInProps }
136
- columns = { gridColumns }
137
- pageSize = { 5 }
138
- editRowsModel = { editRowsModel }
139
- onRowClick = { deleteParentProps }
140
- className = { props . isThemeLight ? classes . themeLight : classes . themeDark }
141
- checkboxSelection
142
- />
136
+ ({ rows . length &&
137
+ < DataGrid
138
+ rows = { rows }
139
+ columns = { gridColumns }
140
+ pageSize = { 5 }
141
+ editRowsModel = { editRowsModel }
142
+ onRowClick = { deleteParentProps }
143
+ className = { props . isThemeLight ? classes . themeLight : classes . themeDark }
144
+ checkboxSelection
145
+ />
146
+ } )
147
+
143
148
</ div >
144
149
) ;
145
150
} ;
Original file line number Diff line number Diff line change @@ -137,9 +137,8 @@ const TableParentProps = props => {
137
137
columns = { gridColumns }
138
138
pageSize = { 5 }
139
139
editRowsModel = { editRowsModel }
140
- onRowClick = { addParentProps }
141
140
className = { props . isThemeLight ? classes . themeLight : classes . themeDark }
142
- checkboxSelection
141
+ // checkboxSelection
143
142
/>
144
143
) }
145
144
</ div >
You can’t perform that action at this time.
0 commit comments