File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed
Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -134,33 +134,37 @@ function App() {
134134 </ >
135135 ) : (
136136 < >
137- < section >
138- < h2 className = "text-lg font-semibold p-4" >
139- Results from index
140- </ h2 >
141- { Object . values ( results . value ) . length === 0 ? (
142- < p class = "p-4" > No results.</ p >
143- ) : (
144- Object . values ( results . value ) . map ( ( summary ) => (
145- < div key = { summary . id } class = "m-4 mt-0" >
146- < Profile { ...summary } />
147- </ div >
148- ) )
149- ) }
150- </ section >
151137 < section >
152138 < h2 className = "text-lg font-semibold p-4" > Original data</ h2 >
153139 { Object . values ( results . value ) . map ( ( { id } ) => {
154140 const originalSummary = profiles . value . find (
155141 ( summary ) => summary . id === id
156142 )
157143 return originalSummary != null ? (
158- < div key = { originalSummary . id } class = "m-4 mt-0" >
144+ < div key = { originalSummary . id } className = "m-4 mt-0" >
159145 < Profile { ...originalSummary } />
160146 </ div >
161147 ) : null
162148 } ) }
163149 </ section >
150+ < section >
151+ { Object . values ( results . value ) . length === 0 ? (
152+ < h2 className = "text-lg font-semibold p-4" >
153+ No results
154+ </ h2 >
155+ ) : (
156+ < >
157+ < h2 className = "text-lg font-semibold p-4" >
158+ Results from index
159+ </ h2 >
160+ { Object . values ( results . value ) . map ( ( summary ) => (
161+ < div key = { summary . id } className = "m-4 mt-0" >
162+ < Profile { ...summary } />
163+ </ div >
164+ ) ) }
165+ </ >
166+ ) }
167+ </ section >
164168 </ >
165169 ) }
166170 </ section >
You can’t perform that action at this time.
0 commit comments