From 020bd129fb43d1af4f972d6963766b842784cba1 Mon Sep 17 00:00:00 2001 From: GyDi Date: Mon, 21 Nov 2022 22:33:06 +0800 Subject: [PATCH] fix: service ref error --- src/components/setting/setting-system.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/setting/setting-system.tsx b/src/components/setting/setting-system.tsx index a23dc4f..0dbf326 100644 --- a/src/components/setting/setting-system.tsx +++ b/src/components/setting/setting-system.tsx @@ -74,7 +74,7 @@ const SettingSystem = ({ onError }: Props) => { sysproxyRef.current?.open()} + onClick={() => serviceRef.current?.open()} /> ) } @@ -95,7 +95,7 @@ const SettingSystem = ({ onError }: Props) => { color="inherit" size="small" sx={{ my: "2px" }} - onClick={() => sysproxyRef.current?.open()} + onClick={() => serviceRef.current?.open()} >