File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/cubejs-playground/src/QueryBuilderV2/components Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -131,18 +131,19 @@ 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
139+ ? customGranularitiesTitleMap [ granularity ]
140+ : titleize ( granularity ) ;
141+
141142 return (
142143 < GranularityListMember
143144 key = { `${ name } .${ granularity } ` }
144145 name = { granularity }
145- title = { customGranularitiesTitleMap [ granularity ] }
146+ title = { title }
146147 isCustom = { isCustom }
147148 isSelected = { isGranularitySelectedMap [ granularity ] }
148149 onToggle = { ( ) => {
You can’t perform that action at this time.
0 commit comments