Fixed: Fix the issue with the automation names in the table.

This commit is contained in:
zhaojisen 2025-04-16 14:59:47 +08:00 committed by ZhaoJiSen
parent 6a13526c87
commit e3626c2f9e

View File

@ -87,8 +87,8 @@ export default {
formatter: DetailFormatter,
minWidth: '180px',
formatterArgs: {
getTitle: ({ row }) => row.snapshot.name,
getDrawerTitle: ({ row }) => row.snapshot.name,
getTitle: ({ row }) => row.automation?.name || row.snapshot.name,
getDrawerTitle: ({ row }) => row.automation?.name || row.snapshot.name,
getRoute: ({ row }) => ({
name: this.automationRoute,
params: { id: row.automation.id }