From c68b5ccb845cd525adc6e3441e818f987684d440 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 26 Jan 2023 16:16:56 +0000 Subject: [PATCH] fix license check --- packages/builder/src/builderStore/dataBinding.js | 4 ++-- packages/builder/src/stores/portal/licensing.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index b7b479bf2d..122cb0d519 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -54,12 +54,12 @@ export const getBindableProperties = (asset, componentId) => { * Gets all rest bindable data fields */ export const getRestBindings = () => { - const hasEnvironmentVariablesEnabled = get(licensing).hasEnvironmentVariables + const environmentVariablesEnabled = get(licensing).environmentVariablesEnabled const userBindings = getUserBindings() return [ ...userBindings, ...getAuthBindings(), - ...(hasEnvironmentVariablesEnabled ? getEnvironmentBindings() : []), + ...(environmentVariablesEnabled ? getEnvironmentBindings() : []), ] } diff --git a/packages/builder/src/stores/portal/licensing.js b/packages/builder/src/stores/portal/licensing.js index 96164ef2dc..6f5c80e03c 100644 --- a/packages/builder/src/stores/portal/licensing.js +++ b/packages/builder/src/stores/portal/licensing.js @@ -60,7 +60,7 @@ export const createLicensingStore = () => { const backupsEnabled = license.features.includes( Constants.Features.BACKUPS ) - let environmentVariablesEnabled = license.features.includes( + const environmentVariablesEnabled = license.features.includes( Constants.Features.ENVIRONMENT_VARIABLES )