Skip to content

Fixed restoration of state from save and exit if partial page#288

Merged
jbarnsley10 merged 2 commits intomainfrom
fix/DF-607-declaration-state
Jan 12, 2026
Merged

Fixed restoration of state from save and exit if partial page#288
jbarnsley10 merged 2 commits intomainfrom
fix/DF-607-declaration-state

Conversation

@jbarnsley10
Copy link
Contributor

@jbarnsley10 jbarnsley10 commented Jan 12, 2026

Proposed change

Fixed restoration of state from save and exit if partial page.
When we save the payload of a Declaration component (before it goes into state for a partial page 'save-and-exit' operation), it hasn't got the same structure as when in state.
The payload structured will be ['true', 'unchecked'] if checked, and ['unchecked'] if unchecked.
This fix caters for that scenario to set the Declaration checkbox to the correct value.

Jira ticket: DF-607

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Misc. (documentation, build updates, etc)

Checklist

  • You have executed this code locally and it performs as expected.
  • You have added tests to verify your code works.
  • You have added code comments and JSDoc, where appropriate.
  • There is no commented-out code.
  • You have added developer docs in README.md and docs/* (where appropriate, e.g. new features).
  • The tests are passing (npm run test).
  • The linting checks are passing (npm run lint).
  • The code has been formatted (npm run format).

@sonarqubecloud
Copy link

@jbarnsley10 jbarnsley10 merged commit b06c821 into main Jan 12, 2026
24 checks passed
@jbarnsley10 jbarnsley10 deleted the fix/DF-607-declaration-state branch January 12, 2026 10:00
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.

2 participants