mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
env var pattern outside loop
This commit is contained in:
@@ -143,6 +143,7 @@ export async function ensureBlockEnvVarsResolvable(
|
||||
options: { requestId?: string } = {}
|
||||
): Promise<void> {
|
||||
const requestId = options.requestId
|
||||
const envVarPattern = createEnvVarPattern()
|
||||
await Promise.all(
|
||||
Object.values(blocks).map(async (block) => {
|
||||
const subBlocks = block.subBlocks ?? {}
|
||||
@@ -157,7 +158,6 @@ export async function ensureBlockEnvVarsResolvable(
|
||||
return
|
||||
}
|
||||
|
||||
const envVarPattern = createEnvVarPattern()
|
||||
const matches = value.match(envVarPattern)
|
||||
if (!matches) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user