From 225bea021d790b22beaa3464cb8899a1fb5ba662 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Tue, 22 Feb 2022 10:10:41 +0100 Subject: [PATCH] fix getting the current version --- packages/frontend-core/src/api/other.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend-core/src/api/other.js b/packages/frontend-core/src/api/other.js index e7b446c181..71ea19ccce 100644 --- a/packages/frontend-core/src/api/other.js +++ b/packages/frontend-core/src/api/other.js @@ -30,9 +30,11 @@ export const buildOtherEndpoints = API => ({ * Gets the version of the installed Budibase environment. */ getBudibaseVersion: async () => { - return await API.get({ - url: "/api/dev/version", - }).version + return ( + await API.get({ + url: "/api/dev/version", + }) + ).version }, /**