From e64ed9be4de06d825c6d8620632579ca1e3c3045 Mon Sep 17 00:00:00 2001 From: Phillip Date: Fri, 17 Feb 2023 15:31:40 +0200 Subject: [PATCH] fix fetching errors --- qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js | 3 ++- qortal-ui-plugins/plugins/core/components/ImageComponent.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js b/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js index 3d8f2757..7b02b003 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js +++ b/qortal-ui-plugins/plugins/core/components/ChatGifs/ChatGifs.js @@ -186,7 +186,7 @@ setOpenGifModal: { attribute: false } if (metaData.files) { const metaDataArray = metaData.files.map((data) => { return { - url: `${nodeUrl}/arbitrary/GIF_REPOSITORY/${this.myAccountName}/${collection.identifier}?filepath=${data}`, + url: `${nodeUrl}/arbitrary/GIF_REPOSITORY/${this.myAccountName}/${collection.identifier}?filepath=${data}&apiKey=${this.getApiKey()}`, filePath: data, identifier: collection.identifier, name: this.myAccountName @@ -612,6 +612,7 @@ setOpenGifModal: { attribute: false } @click=${() => { if (this.isLoading) return; this.mode = 'explore'; + this.currentCollection = null; }} icon="vaadin:search" slot="icon"> diff --git a/qortal-ui-plugins/plugins/core/components/ImageComponent.js b/qortal-ui-plugins/plugins/core/components/ImageComponent.js index b113d75a..af03aadc 100644 --- a/qortal-ui-plugins/plugins/core/components/ImageComponent.js +++ b/qortal-ui-plugins/plugins/core/components/ImageComponent.js @@ -67,7 +67,7 @@ async _fetchImage() { }, 1000) }); try { - const response = await fetch(this.gif.url + `&apiKey=${this.getApiKey()}`); + const response = await fetch(this.gif.url); const data = await response.json(); console.log({data}); if (data.ok) {