From bdb76d4639766cf001f45bb8ebf6c87f3b16942d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 21 May 2025 12:58:53 +0800 Subject: [PATCH] fix: make ts happy --- .../src/components/chat_input/components/music_insert.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/napcat.webui/src/components/chat_input/components/music_insert.tsx b/napcat.webui/src/components/chat_input/components/music_insert.tsx index 8507c6f8..4572912f 100644 --- a/napcat.webui/src/components/chat_input/components/music_insert.tsx +++ b/napcat.webui/src/components/chat_input/components/music_insert.tsx @@ -92,7 +92,9 @@ const MusicInsert = () => { className="w-96" fullWidth selectedKey={mode} - onSelectionChange={setMode} + onSelectionChange={(key) => { + if (key !== null) setMode(key) + }} >