1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-16 13:46:16 +02:00

fixup! Fix linting issues

This commit is contained in:
Aleksandr Gumroian
2024-06-07 16:33:37 +02:00
parent 2961dc3d12
commit dfdaadeb65

View File

@ -111,7 +111,8 @@ const useAPIPatch = createAPIHook("PATCH");
const useAPIPut = createAPIHook("PUT");
const useAPIDelete = createAPIHook("DELETE");
function useAPIPolling(endpoint, until, delay = 1000) {
/* eslint-disable default-param-last */
function useAPIPolling(endpoint, delay = 1000, until) {
// delay ms
const [state, setState] = useState({ state: API_STATE.INIT });
const [getResponse, get] = useAPIGet(endpoint);