Skip to content

Commit 408314d

Browse files
MirkoJaMirkoJan
andauthored
fix: use correct array indices (#933)
Co-authored-by: Mirko Jantschke <[email protected]>
1 parent 47ac9c2 commit 408314d

File tree

1 file changed

+5
-5
lines changed
  • src/main/kotlin/ee/carlrobert/codegpt/settings/prompts/form

1 file changed

+5
-5
lines changed

src/main/kotlin/ee/carlrobert/codegpt/settings/prompts/form/PromptsForm.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ class PromptsForm {
104104

105105
val coreActionsFormState = getFormState<CoreActionPromptDetails>(coreActionsNode)
106106
settings.coreActions.apply {
107-
editCode = coreActionsFormState[1].toState()
108-
fixCompileErrors = coreActionsFormState[2].toState()
109-
generateCommitMessage = coreActionsFormState[3].toState()
110-
generateNameLookups = coreActionsFormState[4].toState()
111-
reviewChanges = coreActionsFormState[5].toState()
107+
editCode = coreActionsFormState[0].toState()
108+
fixCompileErrors = coreActionsFormState[1].toState()
109+
generateCommitMessage = coreActionsFormState[2].toState()
110+
generateNameLookups = coreActionsFormState[3].toState()
111+
reviewChanges = coreActionsFormState[4].toState()
112112
}
113113
settings.chatActions.prompts = getFormState<ChatActionPromptDetails>(chatActionsNode)
114114
.map { it.toState() }

0 commit comments

Comments
 (0)