Commit b14d522
committed
fix: update cloud mode handling in HeaderAction component
- Adjusted the useCloudMode hook in HeaderAction to provide a default repo value, ensuring consistent behavior when pathConfig is not defined.
- Improved robustness of language selection logic in the LangSwitch component by handling potential undefined values for pathConfig.1 parent 2782429 commit b14d522
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments