diff --git a/src/view/layout/AphrontSideNavFilterView.php b/src/view/layout/AphrontSideNavFilterView.php index 17e2c8a868..d4e6accdc9 100644 --- a/src/view/layout/AphrontSideNavFilterView.php +++ b/src/view/layout/AphrontSideNavFilterView.php @@ -83,9 +83,12 @@ final class AphrontSideNavFilterView extends AphrontView { $uri = null) { $item = id(new PhabricatorMenuItemView()) - ->setKey(strlen($key) ? $key : null) ->setName($name); + if (strlen($key)) { + $item->setKey($key); + } + if ($uri) { $item->setHref($uri); } else {