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:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user