fix: null type error
This commit is contained in:
parent
240f4dcfb1
commit
4f56c38599
@ -22,6 +22,7 @@ const ProfilePage = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (profiles.current == null) return;
|
if (profiles.current == null) return;
|
||||||
|
if (!profiles.items) profiles.items = [];
|
||||||
|
|
||||||
const profile = profiles.items![profiles.current];
|
const profile = profiles.items![profiles.current];
|
||||||
if (!profile) return;
|
if (!profile) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user