Fix character build load if doesnt exist

This commit is contained in:
Made Baruna 2023-12-20 11:38:52 +08:00
parent 3cb608b54b
commit f73d65dc8f

View file

@ -233,9 +233,12 @@
onMount(async () => {
const buildHash = window.location.hash.substring(1);
const foundBuild = builds.findIndex((e) => e.name.replace(/[ /]/g, '_').toLowerCase() === buildHash);
if (foundBuild > -1) {
currentBuild = foundBuild;
if (builds) {
const foundBuild = builds.findIndex((e) => e.name.replace(/[ /]/g, '_').toLowerCase() === buildHash);
if (foundBuild > -1) {
currentBuild = foundBuild;
}
}
await getConstellationCount();