Commit 2c5b687
committed
Fixed logic for
In a previous commit, I fixed a bug on when the `validationDelegate()` was called (64813c7). This resulted in more intuitive and flexible behavior that aligns with the documented functionality. In doing so, however, it potentially breaks implementations—including that in the `MenuViewComponentBase<T>`.
As the `validationDelegate()` is now being called correctly on each individual topic, instead of on the parent topic, we need to evaluate the content type of the parent topic in order to filter out children of the `PageGroup` content type. While I was at it, I updated the logic to use C# 9.0's pattern matching syntax.validationDelegate
1 parent 64813c7 commit 2c5b687
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments