Skip to content

Commit 75543eb

Browse files
authored
fix: replace falsy check with explicit string check to allow root route (#276)
1 parent 4899090 commit 75543eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scully/utils/defaultAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const generateAll = async (localBaseFilter = baseFilter) => {
4646
performanceIds.add('Discovery');
4747
log('Pull in data to create additional routes.');
4848
const handledRoutes = await addOptionalRoutes(
49-
unhandledRoutes.filter((r: string) => r && r.startsWith(localBaseFilter))
49+
unhandledRoutes.filter((r: string) => typeof r === 'string' && r.startsWith(localBaseFilter))
5050
);
5151
performance.mark('stopDiscovery');
5252
/** save routerinfo, so its available during rendering */

0 commit comments

Comments
 (0)