mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: null type error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user