Skip to content

Commit

Permalink
fix: delete input handlers based on their index
Browse files Browse the repository at this point in the history
  • Loading branch information
Orenoid committed Dec 15, 2024
1 parent a096c6b commit 4d623fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/settings/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,7 @@ function CommonChatSettings({ chatSettings, updateChatSettings, className = "" }
if (handler.handler.deletable) {
updateChatSettings({
...chatSettings,
inputHandlers: chatSettings.inputHandlers.filter((h) =>
h.handler.implType !== handler.handler.implType
)
inputHandlers: chatSettings.inputHandlers.filter((_, i) => i !== index)
})
}
}}
Expand Down

0 comments on commit 4d623fd

Please sign in to comment.