From 4f56c385998c737bb33f963313c0cd661c80d1a1 Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Wed, 29 Dec 2021 01:01:22 +0800
Subject: [PATCH] fix: null type error

---
 src/pages/profile.tsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx
index 0b74302..efc14af 100644
--- a/src/pages/profile.tsx
+++ b/src/pages/profile.tsx
@@ -22,6 +22,7 @@ const ProfilePage = () => {
 
   useEffect(() => {
     if (profiles.current == null) return;
+    if (!profiles.items) profiles.items = [];
 
     const profile = profiles.items![profiles.current];
     if (!profile) return;
-- 
GitLab