fix license check

This commit is contained in:
Peter Clement 2023-01-26 16:16:56 +00:00
parent 9175cab4ca
commit c68b5ccb84
2 changed files with 3 additions and 3 deletions

View File

@ -54,12 +54,12 @@ export const getBindableProperties = (asset, componentId) => {
* Gets all rest bindable data fields * Gets all rest bindable data fields
*/ */
export const getRestBindings = () => { export const getRestBindings = () => {
const hasEnvironmentVariablesEnabled = get(licensing).hasEnvironmentVariables const environmentVariablesEnabled = get(licensing).environmentVariablesEnabled
const userBindings = getUserBindings() const userBindings = getUserBindings()
return [ return [
...userBindings, ...userBindings,
...getAuthBindings(), ...getAuthBindings(),
...(hasEnvironmentVariablesEnabled ? getEnvironmentBindings() : []), ...(environmentVariablesEnabled ? getEnvironmentBindings() : []),
] ]
} }

View File

@ -60,7 +60,7 @@ export const createLicensingStore = () => {
const backupsEnabled = license.features.includes( const backupsEnabled = license.features.includes(
Constants.Features.BACKUPS Constants.Features.BACKUPS
) )
let environmentVariablesEnabled = license.features.includes( const environmentVariablesEnabled = license.features.includes(
Constants.Features.ENVIRONMENT_VARIABLES Constants.Features.ENVIRONMENT_VARIABLES
) )