mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 02:05:51 +00:00
fix fetching errors
This commit is contained in:
parent
035c3c5e6d
commit
e64ed9be4d
@ -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">
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user