Skip to content

Fix for templates#14

Closed
lellimecnar wants to merge 1 commit intoCloudstek:masterfrom
lellimecnar:template-fix
Closed

Fix for templates#14
lellimecnar wants to merge 1 commit intoCloudstek:masterfrom
lellimecnar:template-fix

Conversation

@lellimecnar
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants