From 6a0298fdbb9da24be1f0248b295724924bfc5891 Mon Sep 17 00:00:00 2001 From: Smoren Date: Mon, 29 Apr 2024 21:04:08 +0300 Subject: [PATCH] Another initial config widget fix. --- .../components/sections/initial-config-section.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/config-editor/components/sections/initial-config-section.vue b/src/components/config-editor/components/sections/initial-config-section.vue index c6e4b6c..713c6c0 100644 --- a/src/components/config-editor/components/sections/initial-config-section.vue +++ b/src/components/config-editor/components/sections/initial-config-section.vue @@ -28,6 +28,10 @@ watch(() => configStore.worldConfig.VIEW_MODE, () => { initialConfig.value = getActualInitialConfig(); }); +watch(() => configStore.worldConfig, () => { + initialConfig.value = getActualInitialConfig(); +}, { deep: true }); + const refill = () => { if (confirm('Are you sure?')) { refillAtoms!();