File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/cubejs-playground/src/QueryBuilderV2/components Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -131,18 +131,17 @@ export function TimeListMember(props: ListMemberProps) {
131131
132132 const granularityItems = ( items : string [ ] , isCustom ?: boolean ) => {
133133 return items . map ( ( granularity : string ) => {
134- if (
135- ( ( ! open || isCompact ) && ! isGranularitySelectedMap [ granularity ] ) ||
136- ! customGranularitiesTitleMap
137- ) {
134+ if ( ( ! open || isCompact ) && ! isGranularitySelectedMap [ granularity ] ) {
138135 return null ;
139136 }
140137
138+ const title = customGranularitiesTitleMap ? customGranularitiesTitleMap [ granularity ] : titleize ( granularity ) ;
139+
141140 return (
142141 < GranularityListMember
143142 key = { `${ name } .${ granularity } ` }
144143 name = { granularity }
145- title = { customGranularitiesTitleMap [ granularity ] }
144+ title = { title }
146145 isCustom = { isCustom }
147146 isSelected = { isGranularitySelectedMap [ granularity ] }
148147 onToggle = { ( ) => {
You can’t perform that action at this time.
0 commit comments