fix: make bms rival compare work

This commit is contained in:
zkldi
2022-11-27 00:56:05 +00:00
parent 3e77b0f04f
commit 6bb822b3e5
2 changed files with 3 additions and 3 deletions
@@ -153,7 +153,7 @@ function FolderCompare({
const songMap = CreateSongMap(baseData.songs);
let ds: ComparePBsDataset = [...baseData.charts, ...compareData.charts].map((chart) => ({
let ds: ComparePBsDataset = baseData.charts.map((chart) => ({
chart,
base: basePBLookup.get(chart.chartID) ?? null,
compare: comparePBLookup.get(chart.chartID) ?? null,
+2 -2
View File
@@ -7,9 +7,9 @@ import {
GamePTConfig,
GetGamePTConfig,
IDStrings,
Playtype,
} from "tachi-common";
import { ComparePBsDataset, FolderDataset, PBDataset, ScoreDataset } from "types/tables";
import { Playtype } from "tachi-common";
function GetBMSTableVal(chart: ChartDocument<"bms:7K" | "bms:14K">, key: string) {
for (const table of chart.data.tableFolders) {
@@ -100,7 +100,7 @@ export function CreatePBCompareSearchParams<I extends IDStrings = IDStrings>(
};
if (game === "bms") {
HandleBMSNonsense(searchFunctions, playtype, (k) => k);
HandleBMSNonsense(searchFunctions, playtype, (k) => k.chart);
}
return searchFunctions;