mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Grammar.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user