Skip to content

fix insertion index #469

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

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

kaushikrw
Copy link
Collaborator

Related to issue: #apollo/653

Description:

When a new attachment is added, the state object is added to the front of the state list.

This is because, before the attachment changes are synced to the service, the newly added attachment is at the end of the AttachmentsFormElement.attachmets list. But after saving it to the service and fetching the attachments, the attachment is at the beginning of the list.

Pre-merge Checklist

  • a vTest Job for this PR has been run
    • link:
  • Unit and/or integration tests have been added to exercise this PR's logic, and the tests are passing:
    • Yes
    • No

@kaushikrw kaushikrw self-assigned this Jun 14, 2024
@kaushikrw kaushikrw marked this pull request as ready for review June 14, 2024 22:51
@kaushikrw kaushikrw requested a review from sorenoid June 17, 2024 21:21
@kaushikrw kaushikrw merged commit 1026ae4 into feature-branches/forms Jun 17, 2024
@kaushikrw kaushikrw deleted the kaushik/forms/attachments-order branch June 17, 2024 21:42
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