mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +08:00
fix: null type error
This commit is contained in:
parent
6570784b46
commit
010e518adb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user