Skip to content

Commit

Permalink
fix(me): fix flickering url with sorting param
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Sep 12, 2023
1 parent c5a7832 commit f1f336a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonModule } from '@angular/common'
import { Component, Input } from '@angular/core'
import { Component, Input, OnInit } from '@angular/core'
import { MatIconModule } from '@angular/material/icon'
import { Router } from '@angular/router'
import { CatalogRecord } from '@geonetwork-ui/common/domain/record'
Expand All @@ -26,7 +26,7 @@ const includes = [
standalone: true,
imports: [CommonModule, MatIconModule, UiSearchModule, UiElementsModule],
})
export class RecordsListComponent {
export class RecordsListComponent implements OnInit {
@Input() title: string

constructor(
Expand All @@ -35,6 +35,9 @@ export class RecordsListComponent {
public searchService: SearchService
) {
this.searchFacade.setPageSize(15).setConfigRequestFields(includes)
}

ngOnInit(): void {
this.searchService.setSortBy(['desc', 'changeDate'])
}

Expand Down

0 comments on commit f1f336a

Please sign in to comment.