Commit 15ff2e6
fix: re-merge listViews after defineStack strips them from objects
Root cause: defineStack() validates config through Zod schemas which strip
non-standard properties like listViews from objects. The mergeViewsIntoObjects()
call in objectstack.shared.ts was being undone by the subsequent defineStack().
Fix: Apply defineStack() first for validation, then re-merge views from the
raw config into the validated objects. Applied to both:
- apps/console/objectstack.shared.ts (MSW/browser mode)
- objectstack.config.ts (server mode)
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent a436d40 commit 15ff2e6
2 files changed
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
37 | 67 | | |
38 | 68 | | |
39 | 69 | | |
| |||
49 | 79 | | |
50 | 80 | | |
51 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
52 | 87 | | |
53 | 88 | | |
54 | 89 | | |
| |||
69 | 104 | | |
70 | 105 | | |
71 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
72 | 113 | | |
73 | 114 | | |
74 | 115 | | |
75 | 116 | | |
76 | 117 | | |
77 | 118 | | |
78 | 119 | | |
79 | | - | |
| 120 | + | |
80 | 121 | | |
81 | 122 | | |
82 | 123 | | |
| |||
0 commit comments