Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaybokaderanium authored and github-actions[bot] committed Feb 9, 2024
1 parent 8823331 commit 9fd47be
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace Visualbuilder\FilamentUserConsent\Resources\ConsentOptionResource\Pages;

use DB;
use Filament\Actions;
use Illuminate\Database\Eloquent\Model;
use Filament\Resources\Pages\EditRecord;
use Illuminate\Database\Eloquent\Model;
use Visualbuilder\FilamentUserConsent\Models\ConsentOption;
use Visualbuilder\FilamentUserConsent\Resources\ConsentOptionResource;

Expand All @@ -30,7 +29,7 @@ protected function handleRecordUpdate(Model $record, array $data): Model
if ($requiresNewVersion = $record->usersViewedThisVersion) {
//create a new version
$data['version'] = $record->nextVersionNumber;
$data['key'] = $record->key."-".$record->nextVersionNumber;
$data['key'] = $record->key . '-' . $record->nextVersionNumber;
$record = ConsentOption::create($data);
} else {
$record->update($data);
Expand Down

0 comments on commit 9fd47be

Please sign in to comment.