Skip to content

Commit 43221a7

Browse files
committed
fix(NavigationTreeNode): do not refetch if error
1 parent 071b037 commit 43221a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/NavigationTree/NavigationTreeNode.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function NavigationTreeNode({
9696
return;
9797
}
9898

99-
if (nodeState.loaded || nodeState.loading) {
99+
if (nodeState.loaded || nodeState.loading || nodeState.error) {
100100
return;
101101
}
102102

@@ -126,6 +126,7 @@ export function NavigationTreeNode({
126126
nodeState.collapsed,
127127
nodeState.loaded,
128128
nodeState.loading,
129+
nodeState.error,
129130
path,
130131
]);
131132

0 commit comments

Comments
 (0)