diff --git a/src/client/octoUtils.tsx b/src/client/octoUtils.tsx index c44f876b8..0df9702e0 100644 --- a/src/client/octoUtils.tsx +++ b/src/client/octoUtils.tsx @@ -199,7 +199,7 @@ class OctoUtils { return { id: o.id, name: o.name, - icon: (sortOption.propertyId === o.id) ? sortOption.reversed ? "sortUp" : "sortDown" : undefined + icon: (sortOption?.propertyId === o.id) ? sortOption.reversed ? "sortUp" : "sortDown" : undefined } }) Menu.shared.onMenuClicked = async (propertyId: string) => {