Browse Source

fix: review changes

pull/7361/head
Ramesh Mane 11 months ago
parent
commit
ef28d43cc5
  1. 19
      packages/nc-gui/components/smartsheet/grid/GroupBy.vue

19
packages/nc-gui/components/smartsheet/grid/GroupBy.vue

@ -154,20 +154,19 @@ const parseKey = (group: Group) => {
// show the groupBy dateTime field title format as like cell format // show the groupBy dateTime field title format as like cell format
if (key && group.column?.uidt === UITypes.DateTime) { if (key && group.column?.uidt === UITypes.DateTime) {
const dateTime = parseStringDateTime( return [
key, parseStringDateTime(
`${parseProp(group.column?.meta)?.date_format ?? dateFormats[0]} ${ key,
parseProp(group.column?.meta)?.time_format ?? timeFormats[0] `${parseProp(group.column?.meta)?.date_format ?? dateFormats[0]} ${
}`, parseProp(group.column?.meta)?.time_format ?? timeFormats[0]
) }`,
),
return [dateTime] ]
} }
// show the groupBy time field title format as like cell format // show the groupBy time field title format as like cell format
if (key && group.column?.uidt === UITypes.Time) { if (key && group.column?.uidt === UITypes.Time) {
const time = parseStringDateTime(key, timeFormats[0], false) return [parseStringDateTime(key, timeFormats[0], false)]
return [time]
} }
if (key && group.column?.uidt === UITypes.User) { if (key && group.column?.uidt === UITypes.User) {

Loading…
Cancel
Save