resolve issue with deleted pages and modules caused by refactoring

This commit is contained in:
Shaun Walker
2022-08-12 18:02:45 -04:00
parent 3c6ebd7742
commit 3cf7153f44
3 changed files with 8 additions and 30 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Oqtane.Models;
@ -25,11 +26,11 @@ namespace Oqtane.UI
public List<Page> Pages
{
get { return Site.Pages; }
get { return Site.Pages.Where(item => !item.IsDeleted).ToList(); }
}
public List<Module> Modules
{
get { return Site.Modules; }
get { return Site.Modules.Where(item => !item.IsDeleted).ToList(); }
}
public List<Language> Languages
{