Skip to content

Commit

Permalink
fix: go to rule list when in create rule page
Browse files Browse the repository at this point in the history
  • Loading branch information
xinbinyan committed Oct 23, 2023
1 parent f0cb67f commit fc15154
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/sqle/src/page/AuditPlan/CreatePlan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useTranslation } from 'react-i18next';
import { Space } from 'antd5';
import { useState } from 'react';
import { BasicButton, BasicResult, PageHeader } from '@actiontech/shared';
import { useBack } from '@actiontech/shared/lib/hooks';

import { useForm } from 'antd5/es/form/Form';
import { useNavigate } from 'react-router-dom';
Expand All @@ -23,7 +22,6 @@ import audit_plan from '@actiontech/shared/lib/api/sqle/service/audit_plan';
const CreatePlan = () => {
const { t } = useTranslation();
const navigater = useNavigate();
const { goBack } = useBack();
const { projectName, projectID } = useCurrentProject();

const [submitLoading, setSubmitLoading] = useState(false);
Expand All @@ -32,7 +30,7 @@ const CreatePlan = () => {

const onSkipList = () => {
onReset();
goBack();
navigater(`/sqle/project/${projectID}/auditPlan`);
};

const onReset = () => {
Expand Down

0 comments on commit fc15154

Please sign in to comment.