Skip to content

Commit 6a64d13

Browse files
committed
Remove type check for old class
1 parent 798acda commit 6a64d13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationItem.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Hyde\Support\Models\Route;
1010
use Illuminate\Support\Str;
1111
use Stringable;
12-
use Hyde\Support\Models\ExternalRoute;
1312

1413
use function is_string;
1514

@@ -64,7 +63,7 @@ public static function create(Route|string $destination, ?string $label = null,
6463
$destination = Routes::get($destination);
6564
}
6665

67-
if ($destination instanceof Route && ! $destination instanceof ExternalRoute) {
66+
if ($destination instanceof Route) {
6867
return new self(
6968
$destination,
7069
$label ?? $destination->getPage()->navigationMenuLabel(),

0 commit comments

Comments
 (0)