Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for templates #14

Closed
wants to merge 1 commit into from
Closed

Conversation

lellimecnar
Copy link
Contributor

project.js throws errors if you are using templates in your projects.cson config because templates don't have any defined paths. So, if project.paths is falsy, then just skip it, since there's nothing to open anyway.

@lellimecnar
Copy link
Contributor Author

I closed the previous PR (#14) because I realized that it was still showing templates in the project list, which didn't make sense. So, moving the if (project.paths) { ... } into the parseAll() function made more sense, since templates should be filtered out anyway.

@mdeboer
Copy link
Member

mdeboer commented Dec 7, 2017

Thanks, I'll have a look at it and merge asap 👍

@mdeboer mdeboer self-requested a review December 7, 2017 17:44
@mdeboer mdeboer self-assigned this Dec 7, 2017
@mdeboer
Copy link
Member

mdeboer commented Dec 12, 2017

Thank you for your PR! 👍 I took the liberty of editing your code and move the logic to the parse method as that won't work without the paths property either. I will merge these changes with other changes which are due for v2.3.2 later today.

@mdeboer mdeboer closed this Dec 12, 2017
mdeboer added a commit that referenced this pull request Dec 12, 2017
Skip projects (templates) in projects list that don’t have paths defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants