I tried getting the metadata of jp.foonline.store. This app has no ratings, resulting in data[51][0] being null and an TypeError: Cannot read properties of null (reading '0') at
I think some missing data should be fine here and I expected fetchAppDetails to just return an incomplete result instead of failing completely. In any case, since some apps just don’t have ratings, parseAppDetailsPayload should not rely on it being there.
I tried getting the metadata of
jp.foonline.store. This app has no ratings, resulting indata[51][0]beingnulland anTypeError: Cannot read properties of null (reading '0')atparse-play/src/endpoints/app-details.ts
Line 189 in 1e42ad9
I think some missing data should be fine here and I expected
fetchAppDetailsto just return an incomplete result instead of failing completely. In any case, since some apps just don’t have ratings,parseAppDetailsPayloadshould not rely on it being there.