Skip to content

Commit

Permalink
Fix view layout
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed May 30, 2024
1 parent ee843ea commit b6b648e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function resolveLayout(): string
return $layout['default'] ?? '';
}

return (string) $layout ?: $this->options['layout'];
return (string) ($layout ?: $this->options['layout'] ?? '');
}

protected function injectData(object $vm, array $data): void
Expand Down

0 comments on commit b6b648e

Please sign in to comment.