File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,9 +284,9 @@ export default function App() {
284284 </button >
285285 <ul >
286286 { documents .map ((doc ) => (
287- <li key = { doc ._id } >
288- { doc .text }
289- <button onClick = { () => removeByID ({ id: doc ._id })} >remove</button >
287+ <li key = { doc .value . _id } >
288+ { doc .value . text }
289+ <button onClick = { () => removeByID ({ id: doc .value . _id })} >remove</button >
290290 </li >
291291 ))}
292292 </ul >
@@ -331,13 +331,13 @@ export default function App() {
331331
332332 <ul >
333333 { documents .map ((doc ) => (
334- <li key = { doc ._id } >
334+ <li key = { doc .value . _id } >
335335 <input
336336 type = " checkbox"
337- checked = { doc .isCompleted }
338- onChange = { (e ) => setCompleted ({ id: doc ._id , isCompleted: e .target .checked })}
337+ checked = { doc .value . isCompleted }
338+ onChange = { (e ) => setCompleted ({ id: doc .value . _id , isCompleted: e .target .checked })}
339339 />
340- { doc .text }
340+ { doc .value . text }
341341 </li >
342342 ))}
343343 </ul >
You can’t perform that action at this time.
0 commit comments