Wait for map load before loading effects

Both command and mapSettings effects work again
This commit is contained in:
Colin Kallemein 2025-01-21 19:59:40 +01:00
parent 5c68b02fff
commit 9a601b7e2e

View File

@ -111,7 +111,7 @@ const updateScene = () => {
// Only update effects once mapEffects are loaded
if (!mapEffectsReady.value) {
if (mapEffects && Object.keys(mapEffects).length) {
if (mapObject.value) {
mapEffectsReady.value = true
} else {
return