Skip to content
Snippets Groups Projects
Unverified Commit a4fb2dfc authored by GyDi's avatar GyDi
Browse files

fix: adjust update profile notice error

parent ba16ec02
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,10 @@ const ProfileItem = (props: Props) => {
await updateProfile(itemData.uid, { with_proxy: withProxy });
mutate("getProfiles");
} catch (err: any) {
Notice.error(err?.message || err.toString());
const errmsg = err?.message || err.toString();
Notice.error(
errmsg.replace(/error sending request for url (\S+?): /, "")
);
} finally {
setLoadingCache((cache) => ({ ...cache, [itemData.uid]: false }));
}
......
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