From 3602a572a56184efe4cc1cc5f63f9c2a9abe7dd5 Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 23:04:53 +0100 Subject: [PATCH] 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. --- src/api/dashboard/static/js/ui/indicators-panel-new.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 91c552d..95aab20 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -858,10 +858,7 @@ export function drawIndicatorsOnChart() { } // Export functions for module access -export const addIndicator = addIndicator; -export const removeIndicatorById = removeIndicatorById; -export const removeIndicatorByIndexFunction = removeIndicatorByIndex; -const removeIndicatorByIndex = removeIndicatorByIndex; +export { addIndicator, removeIndicatorById, removeIndicatorByIndex }; // Legacy compatibility functions window.renderIndicatorList = renderIndicatorPanel;