4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fix pagination

This commit is contained in:
AlphaX-Projects 2022-08-16 11:05:06 +02:00 committed by GitHub
parent add708a797
commit 679aa3857f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -545,7 +545,7 @@ class Websites extends LitElement {
const blockedNamesUrl = `${nodeUrl}/lists/blockedNames?apiKey=${this.getApiKey()}`
const resources = await parentEpml.request('apiCall', {
url: `/arbitrary/resources?service=${this.service}&default=true&limit=0&reverse=false&includestatus=true&includemetadata=true`
url: `/arbitrary/resources?service=${this.service}&default=true&limit=0&reverse=false&includestatus=false&includemetadata=false`
})
this.resources = resources
@ -553,7 +553,7 @@ class Websites extends LitElement {
const followedResponse = await fetch(followedNamesUrl)
const followednames = await followedResponse.json()
let followedres = resources.filter((elm) => followednames.includes(elm.name))
this.followedResources = followedres
this.followedResources = followedres
const blockedResponse = await fetch(blockedNamesUrl)
const blockednames = await blockedResponse.json()