From 751b59090f3f7e43ae8e5d30d5902956ec7365bc Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 22:50:48 +0100 Subject: [PATCH] Add missing global variables: indicatorPanes and nextPaneIndex These variables were used in drawIndicatorsOnChart but never declared at module level. Added declarations to fix 'indicatorPanes is not defined' error. --- src/api/dashboard/static/js/ui/indicators-panel-new.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/dashboard/static/js/ui/indicators-panel-new.js b/src/api/dashboard/static/js/ui/indicators-panel-new.js index 6b075df..8e78cb5 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -7,6 +7,10 @@ let searchQuery = ''; let selectedCategory = 'all'; let nextInstanceId = 1; +// Chart pane management +let indicatorPanes = new Map(); +let nextPaneIndex = 1; + // Presets storage let userPresets = JSON.parse(localStorage.getItem('indicator_presets') || '{}');