Commit 413d9d0
committed
fix: error for
Before the `isGuestDashboardKey()` utility function threw an error,
in the `useDasboardKeyProvider()` composable.
Only when the url was `/dashboard` (no dashboard key) and the
`bc-validator-dashboard-key` cookie value was a number
(e.g. private dashboards).
Trying to use startsWith() on a number remained undetected since
the `useBcCookie() composable` used `string` as a default type value.empty dashboard and private dashboard id in cookie1 parent d939acd commit 413d9d0
File tree
3 files changed
+5
-5
lines changed- frontend
- composables
- stores/dashboard
3 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments