Skip to content

Commit

Permalink
chore: hide the llm import feature in cloud (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianiaJR authored Mar 19, 2024
1 parent 197350c commit 4df04ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/pages/Import/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { trackPageView } from '@app/utils/stat';
import cls from 'classnames';
import { useI18n } from '@vesoft-inc/i18n';
import llm from '@app/stores/llm';
import { useStore } from '@app/stores';
import DatasourceList from './DatasourceList';
import styles from './index.module.less';
import TaskList from './TaskList';
Expand All @@ -14,9 +15,12 @@ const Import = () => {
const location = useLocation();
const [tab, setTab] = useState('tasks');
const { intl } = useI18n();
const { global: { platform }} = useStore();
useEffect(() => {
trackPageView('/import');
llm.fetchConfig();
if (platform !== 'cloud') {
llm.fetchConfig();
}
}, []);
useEffect(() => {
const path = location.pathname;
Expand Down

0 comments on commit 4df04ca

Please sign in to comment.