mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +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