near-in-minutes / frontend

NEAR in Minutes is a NEAR-COOP (NEAR Community Owned and Operated Project) that invites you to binge-watch lessons about the NEAR platform in your favorite language.
https://near-in-minutes.com
0 stars 0 forks source link

TypeError: Cannot read property 'link' of undefined #55

Closed norrec99 closed 3 years ago

norrec99 commented 3 years ago

Here are the videos that give the above error.

near keys Step 1

Step 2



near state Step 1

Step 2

Step 1

Step 2



near call Step 1

Step 2



near view Step 1

Step 2

anujd61 commented 3 years ago

This bug is caused by the limit variable in https://github.com/near-in-minutes/frontend/blob/main/src/composables/useContent.js#L10

Since limit is set to 3, it could only fetch content for 3 languages (hi,en,tr). Changing limit to 4 will fixes this issue for now, but it should be mapped to the number of languages supported by NiM reactively.

amgando commented 3 years ago

Changing limit to 4 will fixes this issue for now, but it should be mapped to the number of languages supported by NiM reactively.

@BigDaddy-Zephyr nice find, can you push a fix? Render.com should add a PR preview URL as soon as you submit it. That way we can check things out in staging before we merge