From 59a84d948ab7e011240a95409e05fedf0cf5e6a8 Mon Sep 17 00:00:00 2001 From: riefive Date: Tue, 25 Nov 2025 14:04:40 +0700 Subject: [PATCH] fix: solve injection component error --- app/handlers/encounter-init.handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/handlers/encounter-init.handler.ts b/app/handlers/encounter-init.handler.ts index 8508987e..95e4e27d 100644 --- a/app/handlers/encounter-init.handler.ts +++ b/app/handlers/encounter-init.handler.ts @@ -270,8 +270,8 @@ export function injectComponents(id: string | number, data: EncounterListData, m } if (currentKeys?.chemotherapyProtocol) { currentKeys.chemotherapyProtocol['component'] = ChemoProtocolListAsync - currentKeys.encounter['props'] = { - data: data?.protocolChemotherapy, + currentKeys.chemotherapyProtocol['props'] = { + data: data?.encounter, paginationMeta: meta?.protocolChemotherapy, } }