Skip to content

Commit

Permalink
Fix FilamentAutoResourceEdit for v3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Feb 22, 2024
1 parent 1102a88 commit 4f3c594
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Filament/Pages/FilamentAutoResourceEdit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Miguilim\FilamentAutoPanel\Filament\Pages;

use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use Illuminate\Database\Eloquent\Model;

Expand All @@ -11,9 +10,9 @@ class FilamentAutoResourceEdit extends EditRecord
protected function fillForm(): void
{
if (static::getResource()::getIntrusive()) {
$data = $this->getRecord()->setHidden([])->attributesToArray();
$data = $this->getRecord()->setHidden([]);
} else {
$data = $this->getRecord()->attributesToArray();
$data = $this->getRecord();
}

$this->fillFormWithDataAndCallHooks($data);
Expand Down

0 comments on commit 4f3c594

Please sign in to comment.