Commit f5e8371
fix: prevent TypeError when route.name is undefined (G4brym#124)
Add optional chaining to this.$route.name access in BucketPicker,
LeftSidebar, and RightSidebar components. Falls back to "files"
when route name is undefined, preventing the TypeError reported in G4brym#64.
Fixes G4brym#64
Co-authored-by: Debian <openclaw@openclaw.1.1.1.1>1 parent 6166198 commit f5e8371
File tree
3 files changed
+3
-3
lines changed- packages/dashboard/src/components/main
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments