Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwenxuan authored and zhouwenxuan committed Nov 6, 2024
1 parent abd4fdc commit 4f78b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/metadata/views/kanban/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []);
Expand Down

0 comments on commit 4f78b22

Please sign in to comment.