Skip to content

Commit eb43445

Browse files
Merge pull request #80 from andrefelipe18/main
Simplify slug retrieval logic
2 parents ee01250 + 042cfa2 commit eb43445

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Pages/EditProfilePage.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ public static function getSlug(): string
1515
{
1616
$plugin = Filament::getCurrentPanel()?->getPlugin('filament-edit-profile');
1717

18-
$slug = $plugin->getSlug();
19-
20-
$slug = $slug ? $slug : self::$slug;
21-
22-
return $slug;
18+
return $plugin?->getSlug() ?? self::$slug;
2319
}
2420

2521
public static function shouldRegisterNavigation(): bool

0 commit comments

Comments
 (0)