fix SideDrawer not working for first row

This commit is contained in:
Sidney Alcantara
2020-11-30 10:35:08 +11:00
parent 635de51e95
commit ed108eee09

View File

@@ -110,8 +110,7 @@ export default function SideDrawer() {
<Form
key={urlDocState.path}
values={
urlDocState.doc ??
(cell && cell?.row ? tableState?.rows[cell!.row] ?? {} : {})
urlDocState.doc ?? tableState?.rows[cell?.row ?? -1] ?? {}
}
/>
)}