From f8fd31a08bd32264b94a650fc7d639de4254bbe6 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Tue, 10 Dec 2024 11:46:37 +0100 Subject: [PATCH] feat: make missing medication chart tables clickable --- .../core/query-summary/MQuerySummaryMedication.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/mtb/src/runtime/components/core/query-summary/MQuerySummaryMedication.vue b/packages/mtb/src/runtime/components/core/query-summary/MQuerySummaryMedication.vue index f38eee67..6ff62987 100644 --- a/packages/mtb/src/runtime/components/core/query-summary/MQuerySummaryMedication.vue +++ b/packages/mtb/src/runtime/components/core/query-summary/MQuerySummaryMedication.vue @@ -31,7 +31,7 @@ export default defineComponent({ required: true, }, }, - setup(props) { + setup() { const queryFilterStore = useQueryFilterStore(); const recommendedVNode = ref(null); const usedVNode = ref(null); @@ -74,7 +74,9 @@ export default defineComponent({ queryFilterStore.commit(); if (!hasChanged) { - usedVNode.value.reset(); + if (usedVNode.value) { + usedVNode.value.reset(); + } } }; @@ -104,6 +106,8 @@ export default defineComponent({ @@ -152,7 +156,11 @@ export default defineComponent({
Durchschnittliche Dauer (in Wochen)
- +