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