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.
This commit is contained in:
DiTus
2026-02-25 23:08:28 +01:00
parent 0b6d5a04ee
commit 539ba7a689

View File

@ -475,7 +475,7 @@ function removeIndicatorById(id) {
activeIndicators.splice(idx, 1); activeIndicators.splice(idx, 1);
if (configuringId === id) { if (configuringId === id) {
configuringId = null; configuringId = null;
} }
@ -790,5 +790,7 @@ window.removeIndicator = function() {
removeIndicatorById(configuringId); removeIndicatorById(configuringId);
}; };
window.removeIndicatorById = removeIndicatorById; window.removeIndicatorById = removeIndicatorById;
window.removeIndicatorByIndex = removeIndicatorByIndex; window.drawIndicatorsOnChart = drawIndicatorsOnChart;
window.drawIndicatorsOnChart = drawIndicatorsOnChart;
// Export functions for module access (must be after all function declarations)
export { addIndicator, removeIndicatorById };