diff --git a/src/app/settings/components/settings.tsx b/src/app/settings/components/settings.tsx index 6d08df7..4588664 100644 --- a/src/app/settings/components/settings.tsx +++ b/src/app/settings/components/settings.tsx @@ -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) }) } }}