From 37598025c6e15c717d9c0232f20c63723d725a36 Mon Sep 17 00:00:00 2001 From: YuHyun Date: Tue, 12 Dec 2023 21:00:05 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EA=B5=AC=EC=A1=B0=20=EB=B6=84?= =?UTF-8?q?=ED=95=B4=20=ED=95=A0=EB=8B=B9=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [#281] --- packages/frontend/src/components/editor/Editor.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/editor/Editor.tsx b/packages/frontend/src/components/editor/Editor.tsx index 13ef4afa..c1a29be0 100644 --- a/packages/frontend/src/components/editor/Editor.tsx +++ b/packages/frontend/src/components/editor/Editor.tsx @@ -52,8 +52,9 @@ export function Editor({ initialFile, onSubmit }: EditorProps) { const handleTextareaOnChange: ChangeEventHandler = ( event, ) => { - const { target } = event; - const { value, selectionStart, selectionEnd } = target; + const { + target: { value, selectionStart, selectionEnd }, + } = event; const key = (event.nativeEvent as InputEvent).data; event.preventDefault();