Commit 3feefd54 authored by Mohammad Nakhaee's avatar Mohammad Nakhaee
Browse files

prevent fetching the data if it is disabled because of isProcessing=true

parent 703799bf
Pipeline #112611 passed with stages
in 36 minutes and 10 seconds
......@@ -186,7 +186,9 @@ export default function FilesBrower({uploadId, disabled}) {
})
setRenderCounter(renderCounter => renderCounter + 1)
}
fetchData().catch(errors.raiseError)
if (!disabled) {
fetchData().catch(errors.raiseError)
}
}, [uploadId, api, errors, setRenderCounter])
useEffect(() => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment