Skip to content
Snippets Groups Projects
Commit 8bba755a authored by Arkerthan's avatar Arkerthan
Browse files

Fix genre chart if no viewers

parent 0c25d1e2
No related branches found
No related tags found
1 merge request!11295Refactor slave list quick-links
......@@ -97,7 +97,7 @@ App.Porn.makeFameProgressChart = function(slave) {
App.Porn.makeViewershipChart = function(slave) {
const container = document.createElement("div");
const data = {name: "Total viewership", children: []};
const data = {name: "Total viewership", children: [], value:0};
for (const type of Object.values(App.Porn.GenreType)) {
const child = {name: type, children: []};
for (const genre of App.Porn.getGenresByType(type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment