Commit ed9ad43
committed
Put in place condition for
Previously, if a page didn't include `PageLevelNavigation`, the partial view would fail due to an attempt to iterate a `null` object. This fixes that issue by wrapping that loop in a condition. This allows a far greater number of pages to be previewed in the local `Host` project.
That said, when connecting to customer databases for testing, this will still fail to recognize any pages associated with proprietary content types, since those won't have local views associated with them.PageLevelNavigation
1 parent 8590d46 commit ed9ad43
1 file changed
Lines changed: 4 additions & 2 deletions
File tree
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments