Commit e6cec43
committed
fix: guard getPageById with pageId check in evaluate_script
When pageIdRouting is true but no pageId is provided, getPageById(undefined)
was called which always throws. Mirror the same guard used in index.ts:
only route by pageId when both the flag is on AND a pageId is present.1 parent 7d59313 commit e6cec43
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments