@@ -43,11 +43,11 @@ class TableData {
entries: AnimeTableEntryData[] = [];
isColumnVisible: Partial> = {};
- get processedColumns(): AnimeTableColumnData[] {
+ get visibleColumns(): AnimeTableColumnData[] {
return this.columns.filter(column => this.isColumnVisible[column.resultType]);
}
- get columnsAsSelectorItems(): SelectInputOptions {
+ get columnsAsSelectInputOptions(): SelectInputOptions {
return new SelectInputOptions(this.columns.map(column => ({
displayName: getResultTypeName(column.resultType, true),
value: column.resultType,
@@ -55,7 +55,7 @@ class TableData {
}
get visibleColumnTypes(): ResultType[] {
- return this.processedColumns.map(column => column.resultType);
+ return this.visibleColumns.map(column => column.resultType);
}
set visibleColumnTypes(value: ResultType[]) {
this.columns.forEach(column => this.isColumnVisible[column.resultType] = value.includes(column.resultType));
diff --git a/frontend/src/views/surveyresults/components/SimpleResultsTable.vue b/frontend/src/views/surveyresults/components/SimpleResultsTable.vue
index 47579f4..dddd706 100644
--- a/frontend/src/views/surveyresults/components/SimpleResultsTable.vue
+++ b/frontend/src/views/surveyresults/components/SimpleResultsTable.vue
@@ -55,7 +55,7 @@ import type { RouteLocationNormalized } from 'vue-router';
const props = defineProps<{
ranking: { anime: AnimeViewModel, result: number, extraResult?: number }[];
- resultTypes: ResultType[]; // Must have either length 1 or 2
+ resultTypes: [ResultType] | [ResultType, ResultType]; // Must have either length 1 or 2
isAnimeSeries?: boolean;
top: number;