Final PR comment.

This commit is contained in:
mike12345567 2023-08-01 12:33:59 +01:00
parent a8ff2da768
commit 4e1aa4fbbd
1 changed files with 1 additions and 7 deletions

View File

@ -16,13 +16,7 @@ export function filterAppList(user: ContextUser, apps: App[]) {
} else {
return apps
}
const finalApps: App[] = []
for (let app of apps) {
if (appList.includes(dbCore.getProdAppID(app.appId))) {
finalApps.push(app)
}
}
return finalApps
return apps.filter(app => appList.includes(dbCore.getProdAppID(app.appId)))
}
export async function fetch(status: AppStatus, user: ContextUser) {