File tree 9 files changed +15
-2
lines changed
9 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import { GroupByOrg } from './groupByOrg';
30
30
import { GroupBySelect } from './groupBySelect' ;
31
31
32
32
interface GroupByOwnProps extends RouterComponentProps , WrappedComponentProps {
33
+ dateRangeType ?: string ;
33
34
endDate ?: string ;
34
35
getIdKeyForGroupBy : ( groupBy : Query [ 'group_by' ] ) => string ;
35
36
groupBy ?: string ;
@@ -122,8 +123,12 @@ class GroupByBase extends React.Component<GroupByProps, GroupByState> {
122
123
}
123
124
124
125
public componentDidUpdate ( prevProps : GroupByProps ) {
125
- const { groupBy, perspective } = this . props ;
126
- if ( prevProps . groupBy !== groupBy || prevProps . perspective !== perspective ) {
126
+ const { dateRangeType, groupBy, perspective } = this . props ;
127
+ if (
128
+ prevProps . groupBy !== groupBy ||
129
+ prevProps . perspective !== perspective ||
130
+ prevProps . dateRangeType !== dateRangeType
131
+ ) {
127
132
let options ;
128
133
if ( prevProps . perspective !== perspective ) {
129
134
options = {
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, any> {
157
157
< Flex style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
158
158
< FlexItem >
159
159
< GroupBy
160
+ dateRangeType = { currentDateRangeType }
160
161
getIdKeyForGroupBy = { getIdKeyForGroupBy }
161
162
groupBy = { groupBy }
162
163
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, any> {
141
141
< Flex >
142
142
< FlexItem style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
143
143
< GroupBy
144
+ dateRangeType = { currentDateRangeType }
144
145
getIdKeyForGroupBy = { getIdKeyForGroupBy }
145
146
groupBy = { groupBy }
146
147
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, any> {
142
142
< Flex >
143
143
< FlexItem style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
144
144
< GroupBy
145
+ dateRangeType = { currentDateRangeType }
145
146
getIdKeyForGroupBy = { getIdKeyForGroupBy }
146
147
groupBy = { groupBy }
147
148
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, any> {
142
142
< Flex >
143
143
< FlexItem style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
144
144
< GroupBy
145
+ dateRangeType = { currentDateRangeType }
145
146
getIdKeyForGroupBy = { getIdKeyForGroupBy }
146
147
groupBy = { groupBy }
147
148
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, any> {
141
141
< Flex >
142
142
< FlexItem style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
143
143
< GroupBy
144
+ dateRangeType = { currentDateRangeType }
144
145
getIdKeyForGroupBy = { getIdKeyForGroupBy }
145
146
groupBy = { groupBy }
146
147
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps, DetailsHeade
172
172
< Flex style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
173
173
< FlexItem >
174
174
< GroupBy
175
+ dateRangeType = { currentDateRangeType }
175
176
getIdKeyForGroupBy = { getIdKeyForGroupBy }
176
177
groupBy = { groupBy }
177
178
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ class DetailsHeaderBase extends React.Component<DetailsHeaderProps> {
165
165
< Flex >
166
166
< FlexItem style = { isAccountInfoDetailsToggleEnabled ? undefined : styles . perspective } >
167
167
< GroupBy
168
+ dateRangeType = { currentDateRangeType }
168
169
getIdKeyForGroupBy = { getIdKeyForGroupBy }
169
170
groupBy = { groupBy }
170
171
isDisabled = { ! showContent }
Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ class ExplorerHeaderBase extends React.Component<ExplorerHeaderProps, ExplorerHe
320
320
< FlexItem > { this . getPerspective ( noProviders ) } </ FlexItem >
321
321
< FlexItem >
322
322
< GroupBy
323
+ dateRangeType = { dateRangeType }
323
324
endDate = { endDate }
324
325
getIdKeyForGroupBy = { getIdKeyForGroupBy }
325
326
groupBy = { groupBy }
You can’t perform that action at this time.
0 commit comments