refactor(editor): Do not make rest api calls for disabled features (no-changelog) (#9046)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-04 15:53:34 +02:00
committed by GitHub
parent 217b07d735
commit 637b6c4d3e
5 changed files with 28 additions and 17 deletions

View File

@@ -116,6 +116,7 @@ function resetNewVariablesList() {
}
async function initialize() {
if (!isFeatureEnabled.value) return;
await environmentsStore.fetchAllVariables();
allVariables.value = [...environmentsStore.variables];