1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

Use global constant

This commit is contained in:
Christopher Kolstad 2021-09-22 13:53:50 +02:00 committed by Ivar Conradi Østhus
parent babf76f88f
commit 1e5a7adb6d
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -122,7 +122,7 @@ export default class StateService {
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
replaceGlobalEnvWithDefaultEnv(data: any) {
data.environments?.forEach((e) => {
if (e.name === ':global:') {
if (e.name === GLOBAL_ENV) {
e.name = DEFAULT_ENV;
}
});