Skip to content
Snippets Groups Projects
Unverified Commit 6114af4f authored by GyDi's avatar GyDi Committed by GitHub
Browse files

fix: profile data undefined error, close #566

parent 8c316296
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ export const useProfiles = () => { ...@@ -32,7 +32,7 @@ export const useProfiles = () => {
if (!profileData || !proxiesData) return; if (!profileData || !proxiesData) return;
const current = profileData.items?.find( const current = profileData.items?.find(
(e) => e.uid === profileData.current (e) => e && e.uid === profileData.current
); );
if (!current) return; if (!current) return;
...@@ -70,7 +70,7 @@ export const useProfiles = () => { ...@@ -70,7 +70,7 @@ export const useProfiles = () => {
return { return {
profiles, profiles,
current: profiles?.items?.find((p) => p.uid === profiles.current), current: profiles?.items?.find((p) => p && p.uid === profiles.current),
activateSelected, activateSelected,
patchProfiles, patchProfiles,
patchCurrent, patchCurrent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment