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

Fix selected template after reordering #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nonvenomous
Copy link

@nonvenomous nonvenomous commented Jan 8, 2025

I created issue #311 and I thought I give it a try.

This pull request addresses the issue by setting the editingTemplateIndex with the new index of the moved template before updating the template list.
This ensures the selected template (editingTemplateIndex) is the template that was moved and the form reflects the same state.

@nonvenomous nonvenomous force-pushed the fix/selected-template-index-bug branch from cca4694 to dd71eeb Compare January 8, 2025 14:59
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