Skip to content

Commit

Permalink
ignore partials when they’re in the ‘partials’ folder (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell authored Aug 24, 2020
1 parent a7dd758 commit b7a07c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/fieldtypes/TemplateFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
// Filter out partials
if (this.config.hide_partials) {
templates = _.reject(templates, function(template) {
return template.match(/(^_.*|\/_.*|\._.*)/g);
return template.startsWith('partials/') || template.match(/(^_.*|\/_.*|\._.*)/g);
});
}
Expand Down

0 comments on commit b7a07c3

Please sign in to comment.