fix: use correct array indices (#933)

Co-authored-by: Mirko Jantschke <mjantschke@novomind.com>
This commit is contained in:
Mirko Jantschke 2025-03-24 02:07:44 +01:00 committed by GitHub
parent 47ac9c2d8a
commit 408314d1e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,11 +104,11 @@ class PromptsForm {
val coreActionsFormState = getFormState<CoreActionPromptDetails>(coreActionsNode)
settings.coreActions.apply {
editCode = coreActionsFormState[1].toState()
fixCompileErrors = coreActionsFormState[2].toState()
generateCommitMessage = coreActionsFormState[3].toState()
generateNameLookups = coreActionsFormState[4].toState()
reviewChanges = coreActionsFormState[5].toState()
editCode = coreActionsFormState[0].toState()
fixCompileErrors = coreActionsFormState[1].toState()
generateCommitMessage = coreActionsFormState[2].toState()
generateNameLookups = coreActionsFormState[3].toState()
reviewChanges = coreActionsFormState[4].toState()
}
settings.chatActions.prompts = getFormState<ChatActionPromptDetails>(chatActionsNode)
.map { it.toState() }