From 28c633e3697ac09a5755f8dcac6f47443b02ebbe Mon Sep 17 00:00:00 2001 From: Katherine Date: Fri, 28 Mar 2025 13:58:16 +0800 Subject: [PATCH] fix: error in migration task popup during async export (#6584) --- .../src/client/components/AsyncTasks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-async-task-manager/src/client/components/AsyncTasks.tsx b/packages/plugins/@nocobase/plugin-async-task-manager/src/client/components/AsyncTasks.tsx index 32f8c24771..682f3a8eb6 100644 --- a/packages/plugins/@nocobase/plugin-async-task-manager/src/client/components/AsyncTasks.tsx +++ b/packages/plugins/@nocobase/plugin-async-task-manager/src/client/components/AsyncTasks.tsx @@ -108,7 +108,7 @@ const AsyncTasksButton = (props) => { }; const taskTemplate = taskTypeMap[title.actionType] || `${actionText}`; - return taskTemplate.replace('{collection}', compile(collection.title)); + return taskTemplate.replace('{collection}', compile(collection?.title || title.collection)); }, }, {