From 6b689d3660a281ab6d0351a04d2443117729fc95 Mon Sep 17 00:00:00 2001 From: Bala Lakshmi Narayanasami Date: Wed, 20 Jul 2022 15:34:35 +0530 Subject: [PATCH] Few more build fixes --- src/Explorer/Explorer.tsx | 3 +-- webpack.config.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index e510a53e8..6efa2cab1 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -469,12 +469,11 @@ export default class Explorer { private async generateConversationToken() { if (!userContext.databaseAccount || !userContext.databaseAccount.id) { - console.error("Database account undefined"); return; } const url = `${configContext.JUNO_ENDPOINT}/api/chatbot/bot${userContext.databaseAccount.id}/conversationToken`; const authorizationHeader = getAuthorizationHeader(); - + try { const response = await fetch(url, { method: "GET", diff --git a/webpack.config.js b/webpack.config.js index a7e43931c..b22601b73 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -246,8 +246,8 @@ module.exports = function (_env = {}, argv = {}) { // These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory compress: true, mangle: { - keep_fnames: true, - keep_classnames: true, + keep_fnames: false, + keep_classnames: false, }, }, }),