1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-25 00:11:36 +01:00
This commit is contained in:
Bogdan Bodnar 2019-12-06 12:09:54 +01:00
parent 9d322811c3
commit d55615abcc
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0

View File

@ -11,7 +11,7 @@ export function useWSForisModule(ws, module, action = "update_settings") {
const [data, setData] = useState(null);
useEffect(() => {
// Sometime we want to disable this hook if WS is not passed. We can't make conditional
// Sometimes we want to disable this hook if WS is not passed. We can't make conditional
// hooks, but we can disable it here. It's used especially in ForisForm when a module
// doesn't present any WS endpoint.
if (!ws) return;