diff --git a/package.json b/package.json index 930b00e..17a7b44 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "bluelib", - "version": "0.12.4", + "version": "0.12.5", "license": "AGPL-3.0-or-later", "source": "src/index.js", "main": "dist/index.js", diff --git a/src/hooks/useRoyalnetData.js b/src/hooks/useRoyalnetData.js index a5d7cab..82eee2d 100644 --- a/src/hooks/useRoyalnetData.js +++ b/src/hooks/useRoyalnetData.js @@ -30,7 +30,7 @@ export default function(method, path, body) { let abort = new AbortController(); setInstanceTesterAbort(abort); - royalnetApiRequest(instanceUrl, method, path, body, abort).then(d => setData(d)).catch((e => setError(e))); + royalnetApiRequest(instanceUrl, method, path, body, abort.signal).then(d => setData(d)).catch((e => setError(e))); } useDeepCompareEffect(() => {