Skip to content

Commit c337e9b

Browse files
authored
Merge pull request #21457 from mvdbeek/fix_column_display
[25.1] Fix sample_sheet column display
2 parents 37d8528 + 7a7d058 commit c337e9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/src/components/Collections/common/DisplayCollectionAsSheet.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ function initializeRowData(rowData: AgRowData[]) {
2727
if (collectionDetailed) {
2828
for (const element of collectionDetailed.elements) {
2929
const row: AgRowData = { __model_object: element };
30-
(collectionDetailed.column_definitions || []).forEach((colDef) => {
31-
// TODO:
32-
row[colDef.name] = "foobar";
30+
(collectionDetailed.column_definitions || []).forEach((colDef, colIndex) => {
31+
row[colDef.name] = element.columns ? element.columns[colIndex] : null;
3332
});
3433
rowData.push(row);
3534
}

0 commit comments

Comments
 (0)