fix: refs #8388 ensure navigation occurs after data reload in save function
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2025-05-13 10:30:51 +02:00
parent 88a9299aa9
commit cc397f6b20
1 changed files with 1 additions and 1 deletions

View File

@ -247,8 +247,8 @@ async function save() {
res: response?.data, res: response?.data,
old: originalData.value, old: originalData.value,
}); });
if ($props.goTo) return push({ path: $props.goTo });
if ($props.reload) await arrayData.fetch({}); if ($props.reload) await arrayData.fetch({});
if ($props.goTo) return push({ path: $props.goTo });
hasChanges.value = false; hasChanges.value = false;
} finally { } finally {
isLoading.value = false; isLoading.value = false;