Skip to content

AttachmentsFeatureElementView - (Test & amend) Fix potential load cancellation condition#1382

Draft
dfeinzimer wants to merge 4 commits intodf/refactoringfrom
df/apollo/1626-test
Draft

AttachmentsFeatureElementView - (Test & amend) Fix potential load cancellation condition#1382
dfeinzimer wants to merge 4 commits intodf/refactoringfrom
df/apollo/1626-test

Conversation

@dfeinzimer
Copy link
Collaborator

@dfeinzimer dfeinzimer commented Mar 11, 2026

@dfeinzimer dfeinzimer changed the title AttachmentsFeatureElementView - (Test) Fix potential load cancellation condition AttachmentsFeatureElementView - (Test & amend) Fix potential load cancellation condition Mar 16, 2026
Comment on lines +68 to +77
if models.isEmpty {
Text(
"No attachments",
bundle: .toolkitModule,
comment: """
A label indicating an element
contains no file attachments.
"""
)
} else {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This prevents the enclosing Group from being optimized out, causing the onAttachmentIsEditableChange modifier on it to never run.

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.

1 participant