Meta data field customization #19

This commit is contained in:
mProjectsCode 2022-06-07 10:38:51 +02:00
parent b4e40d2daa
commit 78ee146b71
8 changed files with 247 additions and 11 deletions

View file

@ -81,7 +81,10 @@ export class SteamAPI extends APIModel {
let result;
for (const [key, value] of Object.entries(await fetchData.json)) {
if (key == id) {
// console.log(typeof key, key)
// console.log(typeof id, id)
// after some testing I found out that id is somehow a number despite that it's defined as string...
if (key === String(id)) {
result = value.data;
}
}