Fix blocklist CSRF token reference error
Build and Push Docker Image / build (push) Successful in 56s
CI / Security audit (push) Has been cancelled
CI / Tests & coverage (push) Has been cancelled
Licence Check / Licence compatibility and copyright header verification (push) Has been cancelled

- Use state.csrfToken instead of undefined csrfToken variable
- Fixes ReferenceError when clicking blocklist button
This commit is contained in:
2026-05-21 02:16:34 +01:00
parent bb10cd4aef
commit 05cf5a0993
+1 -1
View File
@@ -89,7 +89,7 @@ export async function handleBlocklistSearch(download) {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRF-Token': csrfToken
'X-CSRF-Token': state.csrfToken
},
body: JSON.stringify({
arrQueueId: download.arrQueueId,