From 539ba7a6899f5188b0e986c4e2d5f49f2b9cc2ea Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 23:08:28 +0100 Subject: [PATCH] Fix export error by removing non-existent removeIndicatorByIndex export The removeIndicatorByIndex function was removed in the rewrite but export{} was still trying to export it. Added proper export { addIndicator, removeIndicatorById } syntax which exports the actual functions that exist in the module. --- src/api/dashboard/static/js/ui/indicators-panel-new.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 06d00ac..33c6fa5 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -475,7 +475,7 @@ function removeIndicatorById(id) { activeIndicators.splice(idx, 1); - if (configuringId === id) { +if (configuringId === id) { configuringId = null; } @@ -790,5 +790,7 @@ window.removeIndicator = function() { removeIndicatorById(configuringId); }; window.removeIndicatorById = removeIndicatorById; -window.removeIndicatorByIndex = removeIndicatorByIndex; -window.drawIndicatorsOnChart = drawIndicatorsOnChart; \ No newline at end of file +window.drawIndicatorsOnChart = drawIndicatorsOnChart; + +// Export functions for module access (must be after all function declarations) +export { addIndicator, removeIndicatorById }; \ No newline at end of file