Skip to content

refactor(nestedpatterns): trigger warning message only after checking for whether it's actually a pattern file #1311

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

Merged
merged 3 commits into from
Apr 17, 2021

Conversation

mfranzke
Copy link
Contributor

Closes #1309

Summary of changes:
To ensure that the warning message on patterns nested too deep in the folder structure is only shown if the files stored in those subfolders are actually patterns (as the warning message describes them), we have to put the method for checking for whether the current file is a pattern before triggering that warning message.

@andriokha
Copy link

👍 Thanks @mfranzke, appreciated! I can confirm this fixes the problem for me as described in #1309.

@JosefBredereck JosefBredereck merged commit b908c2f into pattern-lab:dev Apr 17, 2021
@mfranzke mfranzke deleted the refactor-issue-1309 branch April 18, 2021 09:47
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.

Don't trigger deep pattern warning on non-pattern files
3 participants