We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2de46 commit 54dc86bCopy full SHA for 54dc86b
www/components/frpc_card.tsx
@@ -67,7 +67,9 @@ export const FRPCFormCard: React.FC<FRPCFormCardProps> = ({
67
useEffect(() => {
68
if (paramClientID) {
69
setClientID(paramClientID)
70
- setServerID(client?.client?.serverId)
+ if (client?.client?.serverId) {
71
+ setServerID(client?.client?.serverId)
72
+ }
73
}
74
75
if (!client || !client?.client || !client?.client?.config) return
@@ -79,7 +81,7 @@ export const FRPCFormCard: React.FC<FRPCFormCardProps> = ({
79
81
}, [paramClientID])
80
82
83
- if (clientID) {
84
+ if (clientID && client?.client?.serverId) {
85
setServerID(client?.client?.serverId)
86
87
}, [clientID, paramClientID, client])
0 commit comments