Skip to content

Commit

Permalink
fix: supply userId for DBAPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
siriuswh0327 committed Oct 23, 2023
1 parent f0cb67f commit 6c8a5d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sqle/src/page/Home/DBAPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ import { getWorkflowsV1FilterStatusEnum } from '@actiontech/shared/lib/api/sqle/
import { IGetWorkflowsV1Params } from '@actiontech/shared/lib/api/sqle/service/workflow/index.d';
import { IWorkflowDetailResV1 } from '@actiontech/shared/lib/api/sqle/service/common';
import workflow from '@actiontech/shared/lib/api/sqle/service/workflow';
import { useCurrentProject } from '@actiontech/shared/lib/global';
import {
useCurrentProject,
useCurrentUser
} from '@actiontech/shared/lib/global';

const DBAPanel: React.FC<IDBAPanelProps> = ({
workflowStatistics,
Expand All @@ -34,6 +37,7 @@ const DBAPanel: React.FC<IDBAPanelProps> = ({
}) => {
const { t } = useTranslation();
const { projectID } = useCurrentProject();
const { uid } = useCurrentUser();
const [filterStatus, setFilterStatus] = useState<DBAPanelFilterKey>(
getWorkflowsV1FilterStatusEnum.wait_for_audit
);
Expand All @@ -52,6 +56,7 @@ const DBAPanel: React.FC<IDBAPanelProps> = ({
page_index: 1,
page_size: DASHBOARD_COMMON_GET_ORDER_NUMBER,
filter_status: filterStatus,
filter_create_user_id: uid,
project_name: projectName
};
return handleTableRequestError(workflow.getWorkflowsV1(params));
Expand Down

0 comments on commit 6c8a5d1

Please sign in to comment.