AP-7184b # draftService.syncDrafts to download draft data in the ba…#1023
Merged
mymattcarroll merged 6 commits intomasterfrom Feb 25, 2026
Merged
AP-7184b # draftService.syncDrafts to download draft data in the ba…#1023mymattcarroll merged 6 commits intomasterfrom
draftService.syncDrafts to download draft data in the ba…#1023mymattcarroll merged 6 commits intomasterfrom
Conversation
Comment on lines
203
to
+220
| const draftSubmission = await getDraftSubmission( | ||
| formSubmissionDraft, | ||
| ).catch((err) => { | ||
| console.warn( | ||
| `Could not fetch draft submission for draft: ${formSubmissionDraft.id}`, | ||
| err, | ||
| ) | ||
|
|
||
| if ( | ||
| err instanceof OneBlinkAppsError && | ||
| err.title === DRAFT_DATA_UNAVAILABLE_ERROR_TITLE | ||
| ) { | ||
| localFormSubmissionDraftsMap.set(formSubmissionDraft.id, { | ||
| ...formSubmissionDraft, | ||
| downloadStatus: 'NOT_AVAILABLE', | ||
| }) | ||
| return | ||
| } |
Contributor
There was a problem hiding this comment.
Could change getDraftSubmission() to return undefined for missing data and change the other places its being called to throw the same error if it returns undefined, instead of relying on a string as the title. Please disregard if you like this implementation ❤️
Contributor
Author
There was a problem hiding this comment.
made it a separate task, a slight improvement. https://linear.app/oneblink/issue/AP-7331/apps-react-or-maybe-change-getdraftsubmission-to-return-undefined-if
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ckground
Closes AP-7184
Requester Checklist
Please only check the items that you have actioned. Do not check items that are not applicable to your PR.
Implementation
Logging and Debugging
Console.WriteLinesReadability
Security
Reviewer Guide