diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js index 89f7e50e5..d530717dc 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/fields/table.js @@ -640,8 +640,8 @@ export async function getTableColumns(fields, options){ const href = Router.getObjectDetailPath({ ...options, formFactor: options.formFactor, appId: "${appId}", objectName: options.objectName || "${objectName}", recordId: `\${${options.idFieldName}}` }) - columns[1].type = "tpl"; - columns[1].tpl = `\${${columns[1].name}}` + columns[0].type = "tpl"; + columns[0].tpl = `\${${columns[0].name}}` } return columns; }