-
Notifications
You must be signed in to change notification settings - Fork 10
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
Zero-values gives errors or empty cells #71
Comments
Hiding cells with 0-values is intentional, as is hiding players with no scores (or only zeroes). WebStats handles having a score of 0 and having no score as the same thing. If you find the empty cells to look weird, an easy fix is adding a custom css file at td.empty::after {
content: "0";
} Do note that you'll need to manually update this file if it has changed in an update as this overrides the default one from the jar. I think the "cannot read property of undefined" error may be coming from the fact that you're running the bedrock players PR. The error should still be present in the browser console, could you send me a screenshot of the stack trace there? (thanks for keeping the issues separate :) |
Found the error in the console log. It does not really give much info:
And the line it refers to is just
This was after I joined the server with a (new) Java-player. I run a server that supports both java and bedrock. The whole table was gone and the error message appeared instead, but reappeared as soon as that new java-player had gotten at least one value in the scoreboard. Thanks for the tip for 0-values btw..
|
That is a weird error. There is no code in WebStats with any |
There was (possibly) another error showing where the table should have been. The one from console.log is probably a more generic chrome-error. |
Could it be that #72 is the error you were getting too? Since that one also seems to have something to do with a player having only |
This looks very much like the same error. |
Hopefully it is, in which case it is fixed in the latest commit :) As mentioned in #72 (comment), if you don't want to wait for the release you can put the new |
Thanks. I just had to re-add my Bedrock-quickfix from #54 |
Just creating this as a separate issue to keep track.
If all stats for a user is 0, the stats table does not load at all, and errors out with a "Cannot read property of undefined" or something similar (the error disppeared as soon as one of the scoreboard-values was updated to 1, so I don't have the exact error message in frnt of me anymore).
If just some values are 0, the table looks a bit strange as 0-values are not shown:
The text was updated successfully, but these errors were encountered: