From 4f78b2257890699ed3bae96a4722149641e9004f Mon Sep 17 00:00:00 2001 From: zhouwenxuan Date: Wed, 6 Nov 2024 11:36:07 +0800 Subject: [PATCH] optimize code --- frontend/src/metadata/views/kanban/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/metadata/views/kanban/index.js b/frontend/src/metadata/views/kanban/index.js index d641b43b8c..a314e384d8 100644 --- a/frontend/src/metadata/views/kanban/index.js +++ b/frontend/src/metadata/views/kanban/index.js @@ -68,7 +68,7 @@ const Kanban = () => { const groupedCardsMap = {}; if (groupByColumn.type === CellType.SINGLE_SELECT) { - // when get cell value from row below, record use FILE_TYPE column use option.id as key, other columns use option.name as key + // when get cell value from row below, record use FILE_TYPE column's option.id as key, for other single select type columns, use option.name as key groupByColumn.data.options.forEach(option => groupByColumn.key === PRIVATE_COLUMN_KEY.FILE_TYPE ? groupedCardsMap[option.id] = [] : groupedCardsMap[option.name] = []);