fix(persistence-service): add fallbacks for environments related schemas (#3832)

This commit is contained in:
James George
2024-02-15 23:38:56 +05:30
committed by GitHub
parent ed6e9b6954
commit 4bd54b12cd
4 changed files with 18 additions and 4 deletions

View File

@@ -425,7 +425,10 @@ export class PersistenceService extends Service {
if (globalIndex !== -1) {
const globalEnv = environmentsData[globalIndex]
globalEnv.variables.forEach((variable) => addGlobalEnvVariable(variable))
globalEnv.variables.forEach(
(variable: Environment["variables"][number]) =>
addGlobalEnvVariable(variable)
)
// Remove global from environments
environmentsData.splice(globalIndex, 1)