Skip to content

Commit

Permalink
Merge branch '2.x' into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Dec 10, 2023
2 parents 80d4973 + 82558b0 commit c4c18b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CreateLayout extends Page implements Forms\Contracts\HasForms

public array $widgetsData;

public function mount(int $record = null): void
public function mount(?int $record = null): void
{
if ($record === null) {
$layoutModel = RainPlugin::get()->getModel('Layout');
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/Layouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Layouts extends Component
{
public Layout $rainLayout;

public function mount(string $slug = null): void
public function mount(?string $slug = null): void
{
$l = $slug ?? RainPlugin::get()->getDefaultLayout();
$this->rainLayout = RainPlugin::get()->getModel('Layout')::where('layout_slug', $l)->firstOrFail();
Expand Down

0 comments on commit c4c18b3

Please sign in to comment.