From a77c1533f73199287990f83ce9fb16416c056c46 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 8 Aug 2021 20:42:22 +0530 Subject: fix: fix the changelog api to handle nightly builds --- src/api/apiBase.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/api/apiBase.js') diff --git a/src/api/apiBase.js b/src/api/apiBase.js index db974c96f..ad37ca02c 100644 --- a/src/api/apiBase.js +++ b/src/api/apiBase.js @@ -30,10 +30,7 @@ const apiBase = (withVersion = true) => { url = window.ferdi.stores.settings.all.app.server; } - if (withVersion) { - return `${url}/${API_VERSION}`; - } - return url; + return withVersion ? `${url}/${API_VERSION}` : url; }; export default apiBase; -- cgit v1.2.3-70-g09d2