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

fetchAttachments build fix #765

Closed

Conversation

mhdostal
Copy link
Member

Fixes the build for the AttachmentsFormElement.fetchAttachments change (to internal, in favor of an async throws attachments property).

@mhdostal mhdostal requested a review from dfeinzimer June 21, 2024 14:48
Comment on lines +145 to +149
// `element.attachments` is now marked `async throws`, so this
// needs to be modified. We can address it as part of
// Apollo #682. Temporarily, just use a random Int.
// let attachmentNumber = element.attachments.count + 1
let attachmentNumber = Int.random(in: 0...99)
Copy link
Collaborator

Choose a reason for hiding this comment

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

In #758, I accessed the attachments up above as apart of the first guard. Here's the commit.

I'll close that PR out but would you just want to change this to do the same?

@mhdostal
Copy link
Member Author

Closed in favor of #758

@mhdostal mhdostal closed this Jun 21, 2024
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.

None yet

2 participants