From cd5442903487d25c29f53a21ac38eceefd263dc1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 23 Jun 2020 23:20:35 +0200 Subject: [PATCH] 0.12.5 --- package.json | 2 +- src/hooks/useRoyalnetData.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(() => {