mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2025-01-07 11:04:50 +01:00
Fix character build load if doesnt exist
This commit is contained in:
parent
3cb608b54b
commit
f73d65dc8f
1 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue