Fix duplicate function declaration error

Changed export const addIndicator = addIndicator to export { addIndicator }
Since addIndicator was already declared as a function, using export const
to redeclare it caused a duplicate declaration error.
This commit is contained in:
DiTus
2026-02-25 23:04:53 +01:00
parent 2c7cbbe073
commit 3602a572a5

View File

@ -858,10 +858,7 @@ export function drawIndicatorsOnChart() {
} }
// Export functions for module access // Export functions for module access
export const addIndicator = addIndicator; export { addIndicator, removeIndicatorById, removeIndicatorByIndex };
export const removeIndicatorById = removeIndicatorById;
export const removeIndicatorByIndexFunction = removeIndicatorByIndex;
const removeIndicatorByIndex = removeIndicatorByIndex;
// Legacy compatibility functions // Legacy compatibility functions
window.renderIndicatorList = renderIndicatorPanel; window.renderIndicatorList = renderIndicatorPanel;