Fix logic error WRT models builder flag out of date models. (#12548)

(cherry picked from commit 6b0149803a879d1c6902a5f61d1f2e9dc8545aac)
This commit is contained in:
Paul Johnson
2022-06-08 08:16:26 +01:00
parent ce8f5f4724
commit cf25d29f90

View File

@@ -44,7 +44,7 @@ namespace Umbraco.Cms.Core.Configuration.Models
{
get
{
if (!ModelsMode.IsAuto())
if (ModelsMode == ModelsMode.Nothing || ModelsMode.IsAuto())
{
return false;
}