Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: release v6.151.1 #7762

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v6.151.1](https://github.com/opengovsg/FormSG/compare/v6.151.0...v6.151.1)

- fix(mrf): prevent infinite loop on r2 [`#7761`](https://github.com/opengovsg/FormSG/pull/7761)
- build: release v6.151.0 [`#7750`](https://github.com/opengovsg/FormSG/pull/7750)

#### [v6.151.0](https://github.com/opengovsg/FormSG/compare/v6.150.1...v6.151.0)

> 8 October 2024

- fix: regression on dropdown input, workflow save action step component [`#7754`](https://github.com/opengovsg/FormSG/pull/7754)
- build: merge release v6.150.1 to develop [`#7753`](https://github.com/opengovsg/FormSG/pull/7753)
- chore: bump version to v6.150.1 [`#7752`](https://github.com/opengovsg/FormSG/pull/7752)
Expand All @@ -14,6 +21,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- chore(deps-dev): bump @types/lodash from 4.17.9 to 4.17.10 in /shared [`#7744`](https://github.com/opengovsg/FormSG/pull/7744)
- fix(deps): bump libphonenumber-js from 1.11.10 to 1.11.11 in /shared [`#7746`](https://github.com/opengovsg/FormSG/pull/7746)
- fix(deps): bump libphonenumber-js from 1.11.9 to 1.11.10 in /shared [`#7743`](https://github.com/opengovsg/FormSG/pull/7743)
- chore: bump version to v6.151.0 [`8b5bdc6`](https://github.com/opengovsg/FormSG/commit/8b5bdc618845fce5eb9e25b674b5ec161a6ceaf9)

#### [v6.150.1](https://github.com/opengovsg/FormSG/compare/v6.150.0...v6.150.1)

Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-frontend",
"version": "6.151.0",
"version": "6.151.1",
"homepage": ".",
"type": "module",
"private": true,
Expand Down
25 changes: 14 additions & 11 deletions frontend/src/features/public-form/PublicFormProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ export const PublicFormProvider = ({
setHasSingleSubmissionValidationError(false)
}, [])

const [
hasPreviousSubmissionDecryptionError,
setHasPreviousSubmissionDecryptionError,
] = useState(false)

useEffect(() => {
if (
data?.errorCodes?.find(
Expand Down Expand Up @@ -240,10 +245,7 @@ export const PublicFormProvider = ({
)
} catch (e) {
console.error(e, 'failed to decrypt attachment', id)
toast({
status: 'danger',
description: 'Failed to decrypt attachment',
})
setHasPreviousSubmissionDecryptionError(true)
}
if (!decryptedContent) return

Expand Down Expand Up @@ -274,12 +276,7 @@ export const PublicFormProvider = ({
setPreviousAttachments(previousAttachments)
}
}
}, [
encryptedPreviousSubmission,
previousSubmission,
submissionSecretKey,
toast,
])
}, [encryptedPreviousSubmission, previousSubmission, submissionSecretKey])

if (
previousSubmissionId &&
Expand Down Expand Up @@ -394,7 +391,13 @@ export const PublicFormProvider = ({
description: t('features.publicForm.errors.myinfo'),
})
}
}, [hasMyInfoError, toast, t])
if (hasPreviousSubmissionDecryptionError) {
toast({
status: 'danger',
description: 'Failed to decrypt attachment',
})
}
}, [hasMyInfoError, hasPreviousSubmissionDecryptionError, toast, t])

const showErrorToast = useCallback(
(error: unknown, form: PublicFormDto) => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.151.0",
"version": "6.151.1",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <formsg@data.gov.sg>"
Expand Down
Loading