Skip to content

Commit 7ed43dd

Browse files
committed
refactor(NavigationTree): set default value in the root component
1 parent 7f40045 commit 7ed43dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/NavigationTree/NavigationTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function NavigationTree({
1313
getActions,
1414
activePath,
1515
onActivePathUpdate,
16-
cache,
16+
cache = true,
1717
}: NavigationTreeProps) {
1818
const [state, dispatch] = React.useReducer(reducer, {
1919
[partialRootState.path]: {

src/components/NavigationTree/NavigationTreeDirectory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function NavigationTreeDirectory({
2626
activePath,
2727
onItemActivate,
2828
getActions,
29-
cache = true,
29+
cache,
3030
}: NavigationTreeDirectoryProps) {
3131
const nodeState = state[path];
3232

0 commit comments

Comments
 (0)