mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +01:00
Grammar.
This commit is contained in:
parent
9d322811c3
commit
d55615abcc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user