Public Invoice View fix

This commit is contained in:
Martin Chevignard
2024-10-15 17:55:56 +02:00
parent 168b741936
commit 59b43fa258
5 changed files with 37 additions and 43 deletions

View File

@@ -188,7 +188,7 @@ const props = defineProps({
},
})
let rows = reactive([])
const rows = ref([])
let isLoading = ref(false)
let tableColumns = reactive(props.columns.map((column) => new Column(column)))
@@ -339,14 +339,13 @@ function lodashGet(array, key) {
return get(array, key)
}
if (usesLocalData.value) {
watch(
() => props.data,
() => {
mapDataToRows()
}
)
}
watch(
() => props.data,
() => {
mapDataToRows()
},
{ deep: true }
)
onMounted(async () => {
await mapDataToRows()