Commit f1d4375
Fix TableOfContents for notion-client v7 and downgrade ESLint
- Update block value access in TableOfContents to handle v7's extra
.value wrapper (block.value.value instead of block.value)
- Add null guards to prevent crashes when page block is not found
- Downgrade eslint to ^8.57.0 and eslint-config-next to ^13.5.6
to fix compatibility with Next.js 13
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7e76cd8 commit f1d4375
3 files changed
Lines changed: 220 additions & 354 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments