Fix this sending ghost requests
This commit is contained in:
@@ -95,6 +95,7 @@ export default function BerryDashChatroom () {
|
|||||||
.map(id => `"${id}"`)
|
.map(id => `"${id}"`)
|
||||||
.join(',')
|
.join(',')
|
||||||
|
|
||||||
|
if (notInAllIds.length != 0) {
|
||||||
;(async () => {
|
;(async () => {
|
||||||
const result = await axios.get(
|
const result = await axios.get(
|
||||||
`/api/berrydash/icon-marketplace/icon?ids=[${notInAllIds}]`
|
`/api/berrydash/icon-marketplace/icon?ids=[${notInAllIds}]`
|
||||||
@@ -116,6 +117,7 @@ export default function BerryDashChatroom () {
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
}
|
||||||
}, [messages])
|
}, [messages])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user