refactor(nodelookup): add treelevel

This commit is contained in:
moklick
2021-11-03 10:03:23 +01:00
parent 248b563231
commit 7333873822
5 changed files with 34 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ function useNodeLookup() {
const store = useStoreApi();
const nodeLookup = useRef(store.getState().nodeLookup);
return nodeLookup;
return nodeLookup.current;
}
export default useNodeLookup;