From a56e4d1ec6fab604f0089e7bcea8dd2ad9647045 Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Tue, 26 Sep 2023 12:47:39 +0800 Subject: [PATCH] fix(workflow): should change letter to lower case when searching in Add block --- .../plugin-workflow/src/client/nodes/manual/forms/create.tsx | 2 +- .../plugin-workflow/src/client/nodes/manual/forms/update.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/create.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/create.tsx index 62a72aaeb..2cc033bee 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/create.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/create.tsx @@ -44,7 +44,7 @@ export default { }, loadChildren: ({ searchValue }) => { return collections - .filter((item) => !item.hidden && item.title.includes(searchValue)) + .filter((item) => !item.hidden && item.title.toLowerCase().includes(searchValue.toLowerCase())) .map((item) => ({ key: `createRecordForm-child-${item.name}`, type: 'item', diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/update.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/update.tsx index 026335145..838c08cec 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/update.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/nodes/manual/forms/update.tsx @@ -85,7 +85,7 @@ export default { }, loadChildren: ({ searchValue }) => { return collections - .filter((item) => !item.hidden && item.title.includes(searchValue)) + .filter((item) => !item.hidden && item.title.toLowerCase().includes(searchValue.toLowerCase())) .map((item) => ({ key: `updateRecordForm-child-${item.name}`, type: 'item',