Handle more watchs route changes bugs

This commit is contained in:
William Buezas 2024-03-13 10:15:32 -03:00
parent 91bd396eab
commit 41e1bad44d
3 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,7 @@ onBeforeMount(() => {
watch( watch(
() => route.params.id, () => route.params.id,
(newValue) => { (newValue) => {
if (!newValue) return;
getAddressesData(newValue); getAddressesData(newValue);
getClientData(newValue); getClientData(newValue);
} }

View File

@ -38,6 +38,7 @@ onBeforeMount(() => {
watch( watch(
() => route.params.id, () => route.params.id,
(newValue) => { (newValue) => {
if (!newValue) return;
getData(newValue); getData(newValue);
} }
); );

View File

@ -98,6 +98,7 @@ onBeforeMount(() => {
watch( watch(
() => route.params.id, () => route.params.id,
(newValue) => { (newValue) => {
if (!newValue) return;
getData(newValue); getData(newValue);
} }
); );