Commit 50974fa
committed
fix: Prevent root level page from overwriting home page ID
Critical bug: When processing root-level pages (sectionName === null),
the first page's ID was overwriting the home page ID in syncedPages map.
This caused all subsequent sections to use the wrong parent.
Example bug:
- First root page 'Solution Draft' (id=101) overwrote home (id=100)
- 'Subscriptions' section then used 101 as parent instead of 100
- Result: Subscriptions appeared under Solution Draft instead of Home
Fix: Only update syncedPages map for actual sections (sectionName !== null),
never for root level which should always remain the home page ID.
All tests passing (148/148).1 parent f479e9e commit 50974fa
3 files changed
Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
0 commit comments