mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: handle non-exist git module
This commit is contained in:
parent
de7e8b8c8c
commit
cbb63db605
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ function resolveGitModules(root, blobData) {
|
|||
const { url, path } = value
|
||||
// for now, handle modules at root only
|
||||
const node = root.contents.find(node => node.path === path)
|
||||
node.url = url
|
||||
if (node) {
|
||||
node.url = url
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue