mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
useQuery key fix
This commit is contained in:
parent
f0d6daf753
commit
26ae1bc2bb
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import ExternalLinkIcon from '../components/externalLinkIcon'
|
||||||
|
|
||||||
import styles from './script.module.css'
|
import styles from './script.module.css'
|
||||||
|
|
||||||
function fetchSupportedSites() {
|
function fetchSurouter.pathnamepportedSites() {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
fetch(`${constants.apiUrl}supportedSites`, {
|
fetch(`${constants.apiUrl}supportedSites`, {
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
|
@ -24,7 +24,7 @@ function fetchSupportedSites() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Script() {
|
export default function Script() {
|
||||||
const { data: supportedSites } = useQuery('leaderBoard', () =>
|
const { data: supportedSites } = useQuery('supportedSites', () =>
|
||||||
fetchSupportedSites()
|
fetchSupportedSites()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue