Tournament team page (#1380)

* WIP

* Query

* Backend for team page done

* UI function made

* UI work

* Tweaks

* Fix showing players from own team

* Optimize performance

* Inactive players styling

* Stage popover
This commit is contained in:
Kalle
2023-05-28 15:25:46 +03:00
committed by GitHub
parent 1adb57003c
commit 7342dd1667
26 changed files with 1000 additions and 104 deletions

View File

@@ -14,7 +14,7 @@ export function parseDBJsonArray(value: any) {
export function parseDBArray(value: any) {
const parsed = JSON.parse(value);
if (parsed.length === 1 && parsed[0] === null) {
if (!parsed || (parsed.length === 1 && parsed[0] === null)) {
return [];
}