1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-24 00:01:36 +01:00

fixup! Fix linting issues

This commit is contained in:
Aleksandr Gumroian 2024-06-07 16:33:37 +02:00
parent 2961dc3d12
commit dfdaadeb65
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

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);