mirror of
https://github.com/mue/mue.git
synced 2026-07-16 13:34:03 +02:00
fix: addon update check
This commit is contained in:
@@ -120,9 +120,14 @@ const Added = memo(() => {
|
||||
const updateCheck = useCallback(() => {
|
||||
let updates = 0;
|
||||
installed.forEach(async (item) => {
|
||||
if (!item.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
const data = await (
|
||||
await fetch(variables.constants.API_URL + 'marketplace/item/' + item.name)
|
||||
await fetch(variables.constants.API_URL + '/marketplace/item/' + item.id)
|
||||
).json();
|
||||
|
||||
if (data.version !== item.version) {
|
||||
updates++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user