Fix blocklist CSRF token reference error
- Use state.csrfToken instead of undefined csrfToken variable - Fixes ReferenceError when clicking blocklist button
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ export async function handleBlocklistSearch(download) {
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'X-CSRF-Token': csrfToken
|
'X-CSRF-Token': state.csrfToken
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
arrQueueId: download.arrQueueId,
|
arrQueueId: download.arrQueueId,
|
||||||
|
|||||||
Reference in New Issue
Block a user