Revert "Bug 41328: Fix incorrect use of ref in KohaTable.vue"

This reverts commit 6a8b160a2f.

Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
This commit is contained in:
Jacob O'Mara 2026-01-26 13:40:38 +00:00
parent 695743328b
commit 6cefe064d4
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -101,10 +101,10 @@ export default {
});
const redraw = url => {
table.value.dt.ajax.url(url).draw();
table.value.dt().ajax.url(url).draw();
};
const useTableObject = () => {
let dt = table.value.dt;
let dt = table.value.dt();
return dt;
};
@ -225,7 +225,7 @@ export default {
});
onMounted(() => {
let dt = table.value.dt;
let dt = table.value.dt();
let table_node = dt.table().node();
let add_filters = props.add_filters;
let filters_options = props.filters_options;
@ -276,7 +276,7 @@ export default {
});
onBeforeUnmount(() => {
const dt = table.value.dt;
const dt = table.value.dt();
dt.destroy();
});
return {