Skip to content

Commit

Permalink
#2141 Fixed crash when trying to open routes v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Wotuu committed Nov 21, 2023
1 parent 76ef8b0 commit ac6877a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/common/maps/controls/pulls.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @var bool $showAllEnabled
*/
// By default, show it if we're not mobile, but allow overrides
$pullsSidebarState = (int)($_COOKIE['pulls_sidebar_state'] ?? 1)
$pullsSidebarState = (int)($_COOKIE['pulls_sidebar_state'] ?? 1);
$defaultState = $defaultState ?? ($isMobile ? 0 : $pullsSidebarState);
$shouldShowPullsSidebar = $defaultState === 1;
$hideOnMove = $hideOnMove ?? $isMobile;
Expand Down

0 comments on commit ac6877a

Please sign in to comment.