fix: error in migration task popup during async export (#6584)

This commit is contained in:
Katherine 2025-03-28 13:58:16 +08:00 committed by GitHub
parent d94c365e30
commit 28c633e369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));
},
},
{