Skip to content

Commit

Permalink
MET-4090 Legend Colour: ensure pinned series are sorted before adding
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Dec 9, 2021
1 parent dcfb5ac commit 894292f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/_directives/click-aware/click-aware.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class ClickAwareDirective extends SubscriptionManager {
private elementRef: ElementRef
) {
super();
console.log('c aware');
this.subs.push(
this.clickService.documentClickedTarget.subscribe(
(target: HTMLElement) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/snapshots/snapshots.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class SnapshotsComponent {
offset: number,
maxRows: number
): Array<ColourSeriesData> {
return seriesKeys.map((seriesKey: string, keyIndex: number) => {
return this.getSortKeys(seriesKeys).map((seriesKey: string, keyIndex: number) => {
const cd = this.compareDataAllFacets[facetName][seriesKey];
const data = percent ? cd.dataPercent : cd.data;
const cdKeys = cd.orderPreferred.slice(offset, offset + maxRows);
Expand Down

0 comments on commit 894292f

Please sign in to comment.