Skip to content
Permalink
Browse files

fix: don't trip if a view doesn't exist

  • Loading branch information...
dariocravero committed Jun 24, 2019
1 parent 1382d85 commit 20119cf618758d6e175b166cde7d0c6a3b1a7efd
Showing with 5 additions and 0 deletions.
  1. +5 −0 get-view-relative-to-view.js
@@ -7,6 +7,11 @@ export default function getViewRelativeToView({
viewsToFiles,
}) {
let importCandidates = viewsById.get(id)
if (!importCandidates) {
// TODO add better error message
console.log('No import candidates for ', id, 'from', view.file)
importCandidates = new Set()
}
let importViewFile = [...importCandidates][0]
if (importCandidates.size > 1) {
let pathToView = view.file.replace(/\.view$/, '')

0 comments on commit 20119cf

Please sign in to comment.
You can’t perform that action at this time.