From 072ac43b9f69807b8514eb11f8214637561a2573 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 4 Apr 2024 16:24:55 -0300
Subject: fix some API differences including whatwg-url params

---
 .../src/paths/instance/templates/list/index.tsx                       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx')

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
index 23bc95943..f9ab6678b 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
@@ -85,7 +85,7 @@ export default function ListTemplates({
 
       <JumpToElementById
         testIfExist={async (id) => {
-          const resp = await lib.management.getTemplateDetails(state.token, id)
+          const resp = await lib.instance.getTemplateDetails(state.token, id)
           return resp.type === "ok"
         }}
         onSelect={onSelect}
@@ -124,7 +124,7 @@ export default function ListTemplates({
           onCancel={() => setDeleting(null)}
           onConfirm={async (): Promise<void> => {
             try {
-              await lib.management.deleteTemplate(state.token, deleting.template_id);
+              await lib.instance.deleteTemplate(state.token, deleting.template_id);
               setNotif({
                 message: i18n.str`Template "${deleting.template_description}" (ID: ${deleting.template_id}) has been deleted`,
                 type: "SUCCESS",
-- 
cgit v1.2.3

