feat: edit headers

This commit is contained in:
tresabhi committed 2024-11-26 20:44:44 -06:00
1 parent 53d811eeef
commit 5f256ed84d
10 files changed
+155 -50

No files matched your search

@@ -1,8 +1,10 @@
export function generateTierListParams(tanks: number[][]) {
import type { TierList } from '../../stores/tierList';
export function generateTierListParams(rows: TierList['rows']) {
const params = new URLSearchParams();
tanks.forEach((row, index) => {
params.set(`row-${index}`, row.join(','));
rows.forEach((row, index) => {
params.set(`row-${index}`, row.tanks.join(','));
});
return params;