Skip to content

Commit

Permalink
fix(app): viewlist helper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ernscht committed Nov 21, 2024
1 parent 0447874 commit 6fabcb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nitro-app/app/templating/twig/helpers/viewlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = function (Twig) {

if (include !== '') {
const includeArray = include.split(',');
filteredViews = views.filter((viewItem) => {
filteredViews = filteredViews.filter((viewItem) => {
return includeArray.some((includeString) => {
return viewItem.url.indexOf(includeString) >= 0;
});
Expand All @@ -67,7 +67,7 @@ module.exports = function (Twig) {

if (exclude !== '') {
const excludeArray = exclude.split(',');
filteredViews = views.filter((viewItem) => {
filteredViews = filteredViews.filter((viewItem) => {
return excludeArray.every((excludeString) => {
return viewItem.url.indexOf(excludeString) === -1;
});
Expand Down

0 comments on commit 6fabcb9

Please sign in to comment.