Commit 55cc169
authored
fix: improve usability and ensure type safety (#97)
* fix(appearance): Remove duplicate initializeTheme call
initializeTheme is already called in app.ts
* fix(types): Type string is not assignable to type Method | undefined
Replaced the generic string type with the Method type from @inertiajs/core for better type safety and alignment with Inertia.js.
* fix(sidebar): Fix breadcrumbs rendering
Ensure the sidebar only renders breadcrumbs when the `breadcrumbs` object exists and has entries. This prevents potential runtime errors if `breadcrumbs` is null or undefined.1 parent 47f92bb commit 55cc169
File tree
3 files changed
+3
-4
lines changed- resources/js
- components
- composables
3 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
| |||
0 commit comments