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:
@ -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;
|
||||
|
||||
// Export functions for module access (must be after all function declarations)
|
||||
export { addIndicator, removeIndicatorById };
|
||||
Reference in New Issue
Block a user