Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Feb 3, 2025
1 parent 97d492d commit b7e6e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/template/elements/BaseElementVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function render(bool $editMode = false): string
'default' => $this->elementContent->isDefault(),
], $this->options);

$options['template_instance_type'] = $this->elementContent->templateInstance?->getType();
$options['template_instance_type'] = $this->elementContent->templateInstance?->getType() ?? TemplateInstance::TYPE_PAGE;

// We only need the template_id for container content elements
if ($this->elementContent instanceof ContainerElement) {
Expand Down

0 comments on commit b7e6e8b

Please sign in to comment.