diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue
index 05757322d..38daadede 100644
--- a/src/components/common/VnCard.vue
+++ b/src/components/common/VnCard.vue
@@ -1,11 +1,26 @@
-
+
+
+
+
+
+
+
+
diff --git a/src/components/ui/VnSubToolbar.vue b/src/components/ui/VnSubToolbar.vue
index f980bbd65..52fe8834a 100644
--- a/src/components/ui/VnSubToolbar.vue
+++ b/src/components/ui/VnSubToolbar.vue
@@ -12,14 +12,16 @@ onMounted(() => {
actions.value = document.querySelector('#st-actions');
data.value = document.querySelector('#st-data');
+ if (!actions.value && !data.value) return;
+
// Check if there's content to display
const observer = new MutationObserver(
() =>
(hasContent.value =
actions.value.childNodes.length + data.value.childNodes.length)
);
- observer.observe(actions.value, opts);
- observer.observe(data.value, opts);
+ if (actions.value) observer.observe(actions.value, opts);
+ if (data.value) observer.observe(data.value, opts);
});
onUnmounted(() => {
diff --git a/src/pages/InvoiceIn/Card/InvoiceInCard.vue b/src/pages/InvoiceIn/Card/InvoiceInCard.vue
index 0f7815c0f..062e7a81a 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInCard.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInCard.vue
@@ -2,7 +2,6 @@
import { useI18n } from 'vue-i18n';
import { useStateStore } from 'stores/useStateStore';
import InvoiceInDescriptor from './InvoiceInDescriptor.vue';
-import LeftMenu from 'components/LeftMenu.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue';
import { useArrayData } from 'src/composables/useArrayData';
import { onMounted, watch } from 'vue';
@@ -47,7 +46,7 @@ const arrayData = useArrayData('InvoiceIn', {
onMounted(async () => await arrayData.fetch({ append: false }));
watch(
() => route.params.id,
- async (newId, oldId) => {
+ async (newId) => {
if (newId) {
arrayData.store.url = `InvoiceIns/${newId}`;
await arrayData.fetch({ append: false });
@@ -64,14 +63,7 @@ watch(
:info="t('You can search by invoice reference')"
/>
-
-
-
-
-
-
-
-
+
es: