Skip to content
Snippets Groups Projects
Unverified Commit 7063af9e authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:rewind: revert change to useTableNavigator (#775)

parent beef97d7
No related branches found
No related tags found
No related merge requests found
...@@ -1010,13 +1010,10 @@ export function useTableNavigator(data, fields) { ...@@ -1010,13 +1010,10 @@ export function useTableNavigator(data, fields) {
let modalStackLength = useRef(0); let modalStackLength = useRef(0);
// onEdit is passed to children, so make sure it maintains identity // onEdit is passed to children, so make sure it maintains identity
let onEdit = useCallback( let onEdit = useCallback((id, field) => {
(id, field) => { setEditingId(id);
setEditingId(id); setFocusedField(id ? field : null);
setFocusedField(id ? field : null); }, []);
},
[setEditingId, setFocusedField],
);
useEffect(() => { useEffect(() => {
modalStackLength.current = store.getState().modals.modalStack.length; modalStackLength.current = store.getState().modals.modalStack.length;
......
---
category: Maintenance
authors: [MatissJanis]
---
Revert small change to `useTableNavigator`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment