Fix unit tests for placeholder site-layout entries
This commit is contained in:
@@ -269,7 +269,10 @@ export const getPaths = (
|
||||
];
|
||||
} else {
|
||||
let enabled = currentEntry.enabled ?? true;
|
||||
if (disabledOnly ? !enabled : enabled) {
|
||||
if (
|
||||
(disabledOnly ? !enabled : enabled) &&
|
||||
!currentEntry.placeholderEntry
|
||||
) {
|
||||
foundPaths.push("/" + [...paths, currentEntry.path || ""].join("/"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user