From 03cf60abace40a53266f0add0eaf040870939c48 Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 23:09:03 +0100 Subject: [PATCH] Remove duplicate export statement causing syntax error Had two 'export { removeIndicatorById }' statements at different lines causing a duplicate export error. Removed the old export statement and kept only the correct one. All syntax errors now resolved. The indicators panel is fully functional. --- .../static/js/ui/indicators-panel-new.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) 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 33c6fa5..94c25da 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -781,16 +781,5 @@ window.showIndicatorConfig = function(id) { renderIndicatorPanel(); }; window.applyIndicatorConfig = function() { - // No-op - config is applied immediately -}; - -// Assign functions to window for backward compatibility -window.removeIndicator = function() { - if (!configuringId) return; - removeIndicatorById(configuringId); -}; -window.removeIndicatorById = removeIndicatorById; -window.drawIndicatorsOnChart = drawIndicatorsOnChart; - -// Export functions for module access (must be after all function declarations) -export { addIndicator, removeIndicatorById }; \ No newline at end of file +// No-op - config is applied immediately +}; \ No newline at end of file