Skip to content

Commit c67b5db

Browse files
committed
Merge branch 'slug-improvements' of github.com:backstagephp/fields into slug-improvements
2 parents 89d86c2 + ba83874 commit c67b5db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Fields/Repeater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function getForm(): array
161161
->live(debounce: 250)
162162
->afterStateUpdated(function (Set $set, Get $get, ?string $state, ?string $old) {
163163
$currentSlug = $get('slug');
164-
164+
165165
if (! $currentSlug || $currentSlug === Str::slug($old)) {
166166
$set('slug', Str::slug($state));
167167
}
@@ -225,4 +225,4 @@ private static function generateSchemaFromChildren(Collection $children): array
225225

226226
return $schema;
227227
}
228-
}
228+
}

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function form(Form $form): Form
4545
->live(debounce: 250)
4646
->afterStateUpdated(function (Set $set, Get $get, ?string $state, ?string $old) {
4747
$currentSlug = $get('slug');
48-
48+
4949
if (! $currentSlug || $currentSlug === Str::slug($old)) {
5050
$set('slug', Str::slug($state));
5151
}
@@ -220,4 +220,4 @@ public static function getPluralModelLabel(): string
220220
{
221221
return __('Fields');
222222
}
223-
}
223+
}

0 commit comments

Comments
 (0)