-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened:
Writing code in onRender or onInit makes variables show in the other as references.

The code crashes if they are used.

What you expected to happen:
The editors shouldn't reference each other.
How to reproduce it (as minimally and precisely as possible):
- Create a variable in onInit
- Type out the variable in onRender
- Press
ctrl + space(doesn't have to be the full variable name)
Panel options
{
"onRender": "otherFile",
"onInit": "const otherFile = \"Hey\";"
}Anything else we need to know?:
Environment:
- Grafana version: v8.2.0
- Plugin (gapit-htmlgraphics-panel) version: v1.3.3
- Data source type & version:
- OS Grafana is installed on: Windows 10 (Ubuntu WSL)
- User OS & Browser: Chrome
- Grafana plugins:
- Others:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working