Skip to content

Commit 0af990f

Browse files
authored
fix(NavigationTreeNode): do not refetch if error (#98)
1 parent a02b06b commit 0af990f

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
@@ -97,7 +97,7 @@ export function NavigationTreeNode({
9797
return;
9898
}
9999

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

@@ -127,6 +127,7 @@ export function NavigationTreeNode({
127127
nodeState.collapsed,
128128
nodeState.loaded,
129129
nodeState.loading,
130+
nodeState.error,
130131
path,
131132
]);
132133

0 commit comments

Comments
 (0)