From 2a6f1ca02196d36d204e5efae663f0a2a06258da Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 29 May 2026 21:36:37 +0000 Subject: [PATCH] Bug 41328: [25.05.x] Fix incorrect use of ref in KohaTable.vue Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/js/vue/components/KohaTable.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue index 1d923c198c..b1600dad56 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue @@ -93,10 +93,10 @@ export default { }, methods: { redraw: function (url) { - this.$refs.table.dt().ajax.url(url).draw(); + this.$refs.table.dt.ajax.url(url).draw(); }, useTableObject: function () { - let dt = this.$refs.table.dt(); + let dt = this.$refs.table.dt; return dt; }, }, @@ -208,7 +208,7 @@ export default { } }, mounted() { - let dt = this.$refs.table.dt(); + let dt = this.$refs.table.dt; let table_node = dt.table().node(); let add_filters = this.add_filters; let filters_options = this.filters_options; @@ -254,7 +254,7 @@ export default { } }, beforeUnmount() { - const dt = this.$refs.table.dt(); + const dt = this.$refs.table.dt; dt.destroy(); }, components: {