Skip to content

Commit

Permalink
fix set state in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Jun 26, 2024
1 parent 9ae97a7 commit c653d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facades/Qr.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Qr extends Facade
{
protected static function getFacadeAccessor(): string
{
return 'helen';
return 'qr';
}

public static function getDefaultOptions(): array
Expand Down Expand Up @@ -50,7 +50,7 @@ public static function getFormSchema(
return [
TextInput::make($statePath)
->live(onBlur: true)
->formatStateUsing(fn () => $defaultUrl)
->formatStateUsing(fn ($state) => $state ?? $defaultUrl)
->visible($showUrl),

Grid::make()
Expand Down

0 comments on commit c653d31

Please sign in to comment.