diff --git a/05-dom-document-loading/2-sortable-table-v1/index.js b/05-dom-document-loading/2-sortable-table-v1/index.js index 921b650..c288369 100644 --- a/05-dom-document-loading/2-sortable-table-v1/index.js +++ b/05-dom-document-loading/2-sortable-table-v1/index.js @@ -37,7 +37,7 @@ export default class SortableTable { createTableBodyCellTemplate(product, columnConfig) { const fieldId = columnConfig["id"]; if (columnConfig["template"]) { - return columnConfig["template"](product[fieldId]); + return columnConfig["template"](product["images"]); } else { return `
${product[fieldId]}
`; }