Skip to content

Commit

Permalink
fix(TemplateLibrary): Upload template Working
Browse files Browse the repository at this point in the history
Signed-off-by: d-e-v-esh <[email protected]>
  • Loading branch information
d-e-v-esh authored and algomaster99 committed Apr 2, 2021
1 parent 87d9d82 commit c4b64b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/TemplateLibrary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit c4b64b6

Please sign in to comment.