fix license check
This commit is contained in:
parent
9175cab4ca
commit
c68b5ccb84
|
@ -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() : []),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue