Commit f485d6b
committed
Fix: guard server.updateSettings RPC call behind server config availability
In hosted-static mode, the cached LocalApi has no rpcClient, causing
server.* methods to reject. Now that settings routes are accessible in
hosted-static mode, the fire-and-forget updateSettings call would produce
unhandled promise rejections. Move the RPC call inside the existing
currentServerConfig guard so it only fires when a server is connected.1 parent 008fc1c commit f485d6b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | | - | |
170 | | - | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments