Skip to content

Commit da84894

Browse files
committed
Don't show error templates in the template fieldtype. Closes statamic/ideas#293
1 parent 68722c2 commit da84894

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

resources/js/components/fieldtypes/TemplateFieldtype.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export default {
4040
});
4141
}
4242
43+
// Filter out error templates
44+
templates = _.reject(templates, function(template) {
45+
return template.startsWith('errors/');
46+
});
47+
4348
// Set default
4449
var options = [];
4550

0 commit comments

Comments
 (0)