From 9c19645abfe64d874192fd36065e14a42306059d Mon Sep 17 00:00:00 2001 From: Bruce Date: Tue, 23 Apr 2024 14:45:06 +0800 Subject: [PATCH] fix: resolves page crash issue during to many attribute editing on `/import/edit/${id}` page (#792) docs: assistant --- README.md | 2 +- app/components/CSVPreviewLink/index.tsx | 3 ++- app/components/FileConfigSetting/index.tsx | 3 ++- .../DatasourceList/LocalFileList/PreviewFileModal/index.tsx | 3 ++- app/pages/LLMBot/chat.tsx | 2 +- app/pages/LLMBot/index.tsx | 2 +- app/stores/llm.ts | 4 ++-- deployment/docker/docker-compose.yml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 10 files changed, 15 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 92898250..7648b490 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Use when you want shutdown the web app kill -9 $(lsof -t -i :7001) ``` -## Documentation 3.9.0 +## Documentation 3.9.2 [中文](https://docs.nebula-graph.com.cn/3.6.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/) [ENGLISH](https://docs.nebula-graph.io/3.6.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/) diff --git a/app/components/CSVPreviewLink/index.tsx b/app/components/CSVPreviewLink/index.tsx index ff51c030..8b73347b 100644 --- a/app/components/CSVPreviewLink/index.tsx +++ b/app/components/CSVPreviewLink/index.tsx @@ -31,7 +31,8 @@ const CSVPreviewLink = (props: IProps) => { let data = []; readString(sample, { delimiter, - worker: true, + // @ts-ignore + worker: false, skipEmptyLines: true, step: (row) => { data = [...data, row.data]; diff --git a/app/components/FileConfigSetting/index.tsx b/app/components/FileConfigSetting/index.tsx index f9fe9096..94495b11 100644 --- a/app/components/FileConfigSetting/index.tsx +++ b/app/components/FileConfigSetting/index.tsx @@ -75,7 +75,8 @@ const FileConfigSetting = (props: IProps) => { if (activeItem.sample !== undefined) { readString(activeItem.sample, { delimiter: activeItem.delimiter || ',', - worker: true, + // @ts-ignore + worker: false, skipEmptyLines: true, step: (row) => { content = [...content, row.data]; diff --git a/app/pages/Import/DatasourceList/LocalFileList/PreviewFileModal/index.tsx b/app/pages/Import/DatasourceList/LocalFileList/PreviewFileModal/index.tsx index 504deba2..a16bf09a 100644 --- a/app/pages/Import/DatasourceList/LocalFileList/PreviewFileModal/index.tsx +++ b/app/pages/Import/DatasourceList/LocalFileList/PreviewFileModal/index.tsx @@ -53,7 +53,8 @@ const PreviewFileModal = (props: IProps) => { let data = []; readString(sample, { delimiter: delimiter || file.delimiter, - worker: true, + // @ts-ignore + worker: false, skipEmptyLines: true, step: (row) => { data = [...data, row.data]; diff --git a/app/pages/LLMBot/chat.tsx b/app/pages/LLMBot/chat.tsx index ec900caf..2cfb4d2a 100644 --- a/app/pages/LLMBot/chat.tsx +++ b/app/pages/LLMBot/chat.tsx @@ -24,7 +24,7 @@ function Chat() { const newMessages = [ ...beforeMessages, { role: 'user', content: currentInput }, - { role: 'assistant', content: '', status: 'pending' }, // asistant can't be changed + { role: 'assistant', content: '', status: 'pending' }, // assistant can't be changed ]; llm.update({ currentInput: '', diff --git a/app/pages/LLMBot/index.tsx b/app/pages/LLMBot/index.tsx index 8ff9665c..c1ded399 100644 --- a/app/pages/LLMBot/index.tsx +++ b/app/pages/LLMBot/index.tsx @@ -26,7 +26,7 @@ function LLMBot() { content={} title={
-
AI Asistant
+
AI Assistant
text2match