diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-22 23:01:32 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-22 23:01:32 -0700 |
commit | bbc54a464a8a3cf41904c5335fb1845ff8af1887 (patch) | |
tree | ebf973383fb6d0ef1fd23f196c85621b5d8cd0bc /modern/src/SocketController.js | |
parent | 94fd5f9f6e8767014a1204794f790fbeaa5e821d (diff) | |
download | trackermap-web-bbc54a464a8a3cf41904c5335fb1845ff8af1887.tar.gz trackermap-web-bbc54a464a8a3cf41904c5335fb1845ff8af1887.tar.bz2 trackermap-web-bbc54a464a8a3cf41904c5335fb1845ff8af1887.zip |
Add server settings page
Diffstat (limited to 'modern/src/SocketController.js')
-rw-r--r-- | modern/src/SocketController.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/SocketController.js b/modern/src/SocketController.js index 73df6d0a..cda693a1 100644 --- a/modern/src/SocketController.js +++ b/modern/src/SocketController.js @@ -51,8 +51,7 @@ const SocketController = () => { useEffectAsync(async () => { const response = await fetch('/api/server'); if (response.ok) { - const server = await response.json(); - dispatch(sessionActions.updateServer(server)); + dispatch(sessionActions.updateServer(await response.json())); } }, []); |