From d87fe60c5f8e5d7b15466c0bb9f8fc6c916674ed Mon Sep 17 00:00:00 2001 From: xiaokang Date: Wed, 19 Jun 2024 11:52:25 +0800 Subject: [PATCH] fixes oceanbase/odc#2778 --- src/component/ExecuteSQLModal/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/ExecuteSQLModal/index.tsx b/src/component/ExecuteSQLModal/index.tsx index dd35383ad..a63131284 100644 --- a/src/component/ExecuteSQLModal/index.tsx +++ b/src/component/ExecuteSQLModal/index.tsx @@ -101,7 +101,8 @@ const ExecuteSQLModal: React.FC = (props) => { const handleFormat = () => { setIsFormatting(true); setTimeout(() => { - // editorRef.current.doFormat(); + //@ts-ignore + editorRef.current.doFormat(); setTimeout(() => { setIsFormatting(false); }, 100);