|
@@ -72,6 +72,7 @@ type Props = WithRouterProps & {
|
|
|
type State = {
|
|
|
pageLinks?: string;
|
|
|
seriesData?: Series[];
|
|
|
+ seriesResultsType?: string;
|
|
|
tableData?: TableDataWithTitle[];
|
|
|
totalIssuesCount?: string;
|
|
|
};
|
|
@@ -163,7 +164,8 @@ class WidgetCard extends Component<Props, State> {
|
|
|
index,
|
|
|
} = this.props;
|
|
|
|
|
|
- const {seriesData, tableData, pageLinks, totalIssuesCount} = this.state;
|
|
|
+ const {seriesData, tableData, pageLinks, totalIssuesCount, seriesResultsType} =
|
|
|
+ this.state;
|
|
|
|
|
|
if (isEditing) {
|
|
|
return null;
|
|
@@ -185,6 +187,7 @@ class WidgetCard extends Component<Props, State> {
|
|
|
location={location}
|
|
|
index={index}
|
|
|
seriesData={seriesData}
|
|
|
+ seriesResultsType={seriesResultsType}
|
|
|
tableData={tableData}
|
|
|
pageLinks={pageLinks}
|
|
|
totalIssuesCount={totalIssuesCount}
|
|
@@ -197,10 +200,12 @@ class WidgetCard extends Component<Props, State> {
|
|
|
timeseriesResults,
|
|
|
totalIssuesCount,
|
|
|
pageLinks,
|
|
|
+ timeseriesResultsType,
|
|
|
}: {
|
|
|
pageLinks?: string;
|
|
|
tableResults?: TableDataWithTitle[];
|
|
|
timeseriesResults?: Series[];
|
|
|
+ timeseriesResultsType?: string;
|
|
|
totalIssuesCount?: string;
|
|
|
}) => {
|
|
|
this.setState({
|
|
@@ -208,6 +213,7 @@ class WidgetCard extends Component<Props, State> {
|
|
|
tableData: tableResults,
|
|
|
totalIssuesCount,
|
|
|
pageLinks,
|
|
|
+ seriesResultsType: timeseriesResultsType,
|
|
|
});
|
|
|
};
|
|
|
|