mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
oops
This commit is contained in:
@@ -130,8 +130,8 @@ export default function create_routes(cwd = locations.routes()) {
|
||||
const is_branch = items.some(other_item => {
|
||||
if (other_item === item) return false;
|
||||
|
||||
if (item.is_dir) {
|
||||
return fs.existsSync(path.join(dir, item.basename, 'index.html'));
|
||||
if (other_item.is_dir) {
|
||||
return fs.existsSync(path.join(dir, other_item.basename, 'index.html'));
|
||||
}
|
||||
|
||||
return other_item.is_page;
|
||||
|
||||
Reference in New Issue
Block a user