fix Side Drawer not loading the correct row’s values for some fields after clicking the navigation buttons

This commit is contained in:
Sidney Alcantara
2021-10-14 17:43:10 +11:00
parent d5f514e70a
commit 055286aab4

View File

@@ -112,7 +112,7 @@ export default function SideDrawer() {
(urlDocState.doc || cell) &&
!_isEmpty(tableState?.columns) && (
<Form
key={urlDocState.path}
key={`${cell?.row}-${urlDocState.path}`}
values={
urlDocState.doc ?? tableState?.rows[cell?.row ?? -1] ?? {}
}