Skip to content

Commit

Permalink
code position
Browse files Browse the repository at this point in the history
  • Loading branch information
shanhexi committed Dec 22, 2023
1 parent 6fcd19c commit 1124eff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chat2db-client/src/components/ConsoleEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ function ConsoleEditor(props: IProps, ref: ForwardedRef<IConsoleRef>) {
const uid = useMemo(() => uuidv4(), []);
const chatResult = useRef('');
const editorRef = useRef<IExportRefFunction>();
const [selectedTables, setSelectedTables] = useState<string[]>([]);
const [tableNameList, setTableNameList] = useState<string[]>([]);
const [syncTableModel, setSyncTableModel] = useState<number>(0);
const [isLoading, setIsLoading] = useState(false);
const [aiContent, setAiContent] = useState('');
Expand Down Expand Up @@ -355,9 +357,6 @@ function ConsoleEditor(props: IProps, ref: ForwardedRef<IConsoleRef>) {
setSyncTableModel(hasAiAccess ? SyncModelType.AUTO : SyncModelType.MANUAL);
};

const [selectedTables, setSelectedTables] = useState<string[]>([]);
const [tableNameList, setTableNameList] = useState<string[]>([]);

// 注册快捷键
const registerShortcutKey = (editor, monaco) => {
// 保存
Expand Down

0 comments on commit 1124eff

Please sign in to comment.