-
-
Notifications
You must be signed in to change notification settings - Fork 51
fix: undefined error in search results loading skeleton #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@abrahamvg is attempting to deploy a commit to the openfoodfacts Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
@VaiTon Can I add a rule to only ignore Code proposed to add : {
rules: {
'@typescript-eslint/no-unused-vars': ['error', {
varsIgnorePattern: '^_$'
}]
}
} |
|
@abrahamvg please run pnpm format ALWAYS before committing (and set up git hooks!) |
Checking formatting... |
Appologies for late fix. @teolemon could you please retrigger the auto-label merge action, once the issue is fixed ? |

What
Issue
When searching for a product locally on my machine (
products/search?q=<name>) I was getting the following error on my console.While reloading the same search result, the results were not getting populated even though the payload was coming in fine.
This issue was resolved for me by updating the loop that generated the
ProductCardskeleton from{#each Array(5) as i (i)}to{#each Array(5) as _, i}. Attaching video as well.Screenshot
https://github.com/user-attachments/assets/01f088be-8832-4bef-a8c4-3089b054f900
Fixes bug(s)