From 30534a259e8fbbb23d36b6e0377151128fc975fd Mon Sep 17 00:00:00 2001
From: Sasha Ilieva <sasha.ilieva@vereign.com>
Date: Tue, 28 May 2019 16:08:08 +0300
Subject: [PATCH] Fix createDocument

---
 javascript/src/iframe/wopiapi-iframe.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/javascript/src/iframe/wopiapi-iframe.js b/javascript/src/iframe/wopiapi-iframe.js
index 542042c..a1ade06 100644
--- a/javascript/src/iframe/wopiapi-iframe.js
+++ b/javascript/src/iframe/wopiapi-iframe.js
@@ -44,7 +44,9 @@ WopiAPI.prototype.createDocument = async (passportUUID, path, contentType, title
     config);
 
   const resourceID = response.data;
-  return await this.getPassports(resourceID, contentType);
+  const passports = await this.getPassports(resourceID, contentType);
+  console.log(passports);
+  return passports;
 };
 
 WopiAPI.prototype.putDocument = function (resourceID, accessToken, file) {
-- 
GitLab