Fix project isDTLEnabled

This commit is contained in:
isUnknown 2025-01-27 18:28:17 +01:00
parent 9a4de64663
commit a963f8aff6
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ $project = [
? $page->client()->toPage()->logo()->toFile()->url()
: null,
"steps" => $page->getSteps(),
"designToLight" => $page->isDTLEnabled() ? processDTLProposals($page) : null,
"designToLight" => $page->isDTLEnabled() == "true" ? processDTLProposals($page) : null,
];
$pageData = array_merge($genericData, $project);

View file

@ -12,7 +12,7 @@ function getProjectData($project) {
"notifications" => Yaml::decode($project->notifications()->value),
"uuid" => (string) $project->uuid(),
"slug" => (string) $project->slug(),
"isDTLEnabled" => (bool) $project->isDTLEnabled()->value() == "true"
"isDTLEnabled" => $project->isDTLEnabled()->value() == "true" ? true : false
];
if ($project->isDTLEnabled()) {