mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Fix: initial state handling for env variables in preflight script (#7670)
This commit is contained in:
parent
aec59f9723
commit
8138a6cb38
2 changed files with 8 additions and 1 deletions
5
.changeset/hungry-days-teach.md
Normal file
5
.changeset/hungry-days-teach.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'hive': patch
|
||||
---
|
||||
|
||||
Hive Lab: Better initial state handling for env variables in preflight script
|
||||
|
|
@ -137,7 +137,9 @@ export async function runIsolatedLabScript(
|
|||
[
|
||||
cryptoJsSource.replace('}(this, function () {', '}(self, function () {'),
|
||||
/* javascript */ `
|
||||
const env = ${JSON.stringify(env)};
|
||||
const env = {
|
||||
variables: ${JSON.stringify(env?.variables)} || {},
|
||||
};
|
||||
|
||||
let promptResolve = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue