Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
refactor: add optional chaining to series
Browse files Browse the repository at this point in the history
  • Loading branch information
cseas committed Jul 12, 2022
1 parent 78e031d commit 8c6a257
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class ExploreVisualizationBuilder implements OnDestroy {
interval: this.resolveInterval(state.interval),
filters: state.filters && this.graphQlFilterBuilderService.buildGraphQlFieldFilters(state.filters),
groupBy: state.groupBy,
orderBy: state.orderBy && [{ direction: state.orderBy, key: state.series[0].specification }],
orderBy: state.orderBy && [{ direction: state.orderBy, key: state.series[0]?.specification }],
limit: state.resultLimit
});
}
Expand Down

0 comments on commit 8c6a257

Please sign in to comment.