From 4d619cffe53feec3d20e28428a23a6655b2876ea Mon Sep 17 00:00:00 2001 From: wjh Date: Fri, 27 Sep 2024 17:04:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E5=8F=91=E8=B5=B7=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=20(#1576)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/1576 Co-authored-by: wjh Co-committed-by: wjh --- .../initiations/component/InitiationsItem.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/component/InitiationsItem.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/component/InitiationsItem.tsx index bc5798649..2fe7a4b93 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/component/InitiationsItem.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/component/InitiationsItem.tsx @@ -24,7 +24,23 @@ export const InitiationsItem = observer((props) => { url: 'workflows:list', params: { pageSize: 9999, - filter: { ...params?.[tabKey] }, + filter: { + $and: [ + { + type: { + $eq: 'approval', + }, + }, + { + enabled: { + $eq: true, + }, + }, + { + ...params?.[tabKey], + }, + ], + }, sort: 'createdAt', }, })