Skip to content

Commit 1482561

Browse files
committed
Fix bug in visibility of use label of model field
1 parent d8680cd commit 1482561

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Filament/Form/Forms/MenuItemForm.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,12 @@ protected static function getTypes(): array
247247
return static::$types;
248248
}
249249

250-
protected static function getTypeByAlias(string $alias): ?AbstractMenuItemType
250+
protected static function getTypeByAlias(?string $alias): ?AbstractMenuItemType
251251
{
252+
if ($alias === null) {
253+
return null;
254+
}
255+
252256
foreach (static::getTypes() as $type) {
253257
if ($type->getAlias() === $alias) {
254258
return $type;

0 commit comments

Comments
 (0)