Why does the example code in the Environment Variables page of Workspace Settings display incorrectly on first load but corrects itself upon refresh?

This topic was automatically generated from Slack. You can find the original thread here.

Hi team, I wanted report a bug that I encountered. The example code in the Environment Variables page in the Workspace Settings have a bug, on first load it will show

console.log(({}).MY_ENV_VAR)
const url = `http://yourapi.com/endpoint/?api_key=${({}).API_KEY}

But if you refresh it, it’ll show the correct sample code

console.log(process.env.MY_ENV_VAR)
const url = `http://yourapi.com/endpoint/?api_key=${process.env.API_KEY}

I encounter this as well

Bumping this up just in case it was missed earlier. Thank you.