From 2df67f37a367223836dcce53f6a23ccf519783ac Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 19 Feb 2023 10:27:37 +0800 Subject: [PATCH] Handle cases if the shortcuts are corrupted --- src/components/columns.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/columns.jsx b/src/components/columns.jsx index 17ef977e..ad8d4aec 100644 --- a/src/components/columns.jsx +++ b/src/components/columns.jsx @@ -27,6 +27,7 @@ function Columns() { favourites: Favourites, hashtag: Hashtag, }[type]; + if (!Component) return null; return ; });