mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 05:04:55 +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 => {
|
const is_branch = items.some(other_item => {
|
||||||
if (other_item === item) return false;
|
if (other_item === item) return false;
|
||||||
|
|
||||||
if (item.is_dir) {
|
if (other_item.is_dir) {
|
||||||
return fs.existsSync(path.join(dir, item.basename, 'index.html'));
|
return fs.existsSync(path.join(dir, other_item.basename, 'index.html'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return other_item.is_page;
|
return other_item.is_page;
|
||||||
|
|||||||
Reference in New Issue
Block a user