diff --git a/src/helpers/isDataElementLeftPanel.js b/src/helpers/isDataElementLeftPanel.js index 2f1eadcb6..384b04858 100644 --- a/src/helpers/isDataElementLeftPanel.js +++ b/src/helpers/isDataElementLeftPanel.js @@ -8,7 +8,7 @@ export const getLeftPanelDataElements = (state) => { const { customizableUI } = featureFlags; if (customizableUI) { - return state.viewer.genericPanels.filter((item) => item.location === PLACEMENT.LEFT); + return state.viewer.genericPanels.filter((item) => item.location === PLACEMENT.LEFT).map((item) => item.dataElement); } const defaultLeftPanels = [