Skip to content

fix: replace standalone indicators custom forms [DHIS2-21607]#563

Open
tomzemp wants to merge 2 commits into
masterfrom
DHIS2-21607/indicator-calculations
Open

fix: replace standalone indicators custom forms [DHIS2-21607]#563
tomzemp wants to merge 2 commits into
masterfrom
DHIS2-21607/indicator-calculations

Conversation

@tomzemp

@tomzemp tomzemp commented Jun 8, 2026

Copy link
Copy Markdown
Member

Similar to #471

We had logic for custom forms that replaced indicator cells if (and only if) they were inside <td> elements.

This PR updates the logic to replace standalone indicator cells as well.

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-563--dhis2-data-entry.netlify.app

export const CustomFormTotalCell = ({ dataElementId }) => {
const dataValues = useValueStore((state) => state.getDataValues())
const dataElementValues = dataValues?.[dataElementId] || {}
const dataElementValues = useMemo(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not related, but is in the same directory, and the linter pointed this error out to me (this just guarantees the object reference is stable, but if it's defined, it wouldn't be an issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants