-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
Using layout parameter twice in top-langs gives toLowerCase not a function error #2737
Comments
Remove extra layout parameter then. I'm not sure that it is a bug. What do you think @rickstaa ? If we are going to fix it the source of problem is the following code string:
UPD: according to docs layout parameter expected to be a string, when you submit it several times it become an array. Now i`m sure that this problem is not on our side. This issue should be closed. The one thing that we can do is to show more user friendly error in case of types mismatch. |
This commit makes sure that the `layout?.toLowerCase is not a function` error is not thrown when users accidentally supply two layouts (see #2737)
Fixed in #2770. |
EDIT: I was giving two layout parameters without noticing, ignore the PR reference! Nonetheless here's the bug report
If layout parameter is given two times such as in
https://github-readme-stats.vercel.app/api/top-langs/?username=feikname&layout=compact&layout=compact
Then this happens
The text was updated successfully, but these errors were encountered: