From 6dc73a83b153cbe830625af1bb2c76841b3c2384 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Tue, 13 Oct 2020 22:24:54 -0700 Subject: [PATCH] Fix error on sort menu --- src/client/octoUtils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {