fix: admin/config: white page when leaving
Massimo Melina committed
Aug 7, 2022 at 17:40 UTC
7d0c21a51e37d55592d818bf46fc0b3eaeafaa66
2 files changed
+2
-3
admin/src/ConfigPage.ts
+1
-1
@@ -34,7 +34,7 @@ export default function ConfigPage() {
34
const statusApi = useApiEx(data && 'get_status')
35
const status = statusApi.data
36
const reloadStatus = exposedReloadStatus = statusApi.reload
37
- useEffect(reloadStatus, [data]) //eslint-disable-line
37
+ useEffect(() => void(reloadStatus()), [data]) //eslint-disable-line
38
useEffect(() => () => exposedReloadStatus = undefined, []) // clear on unmount
39
40
const admins = useApi('get_admins')[0]?.list
todo.md
+1
-2
@@ -15,8 +15,7 @@
15
- admin/fs: support insert/delete key
16
- admin/fs: button "copy url to clipboard"
17
- admin/monitor: show some info on what folder is browsing
18
-- admin/stats: total bytes sent
19
-- admin/stats: list of IPs seen
18
+- plugin: list of IPs seen
19
- admin: in a group, show linked accounts
20
- admin: warn in case of items with same name
21
- command line help --help