From c4b64b694cc9a0e421b5db786b6167583e099507 Mon Sep 17 00:00:00 2001 From: d-e-v-esh <59534570+d-e-v-esh@users.noreply.github.com> Date: Fri, 2 Apr 2021 21:21:27 +0530 Subject: [PATCH] fix(TemplateLibrary): Upload template Working Signed-off-by: d-e-v-esh <59534570+d-e-v-esh@users.noreply.github.com> --- src/components/TemplateLibrary/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TemplateLibrary/index.js b/src/components/TemplateLibrary/index.js index b2feed6..39fce9e 100644 --- a/src/components/TemplateLibrary/index.js +++ b/src/components/TemplateLibrary/index.js @@ -34,9 +34,8 @@ const LibraryComponent = () => { const fileUploaded = event.target.files[0]; try { const template = await Template.fromArchive(fileUploaded); - const templateIdentifier = template.getIdentifier(); const ciceroMark = templateToCiceroMark(template); - setup(ciceroMark, templateIdentifier); + setup(ciceroMark, template); } catch (error) { Office.context.ui.displayDialogAsync(`${window.location.origin}/bad-file.html`, { width: 30, height: 8 });