Skip to content

Commit

Permalink
Merge pull request #881 from geonetwork/change-fields-service
Browse files Browse the repository at this point in the history
Change private "fields" and "injector" to protected
  • Loading branch information
Angi-Kinas authored May 22, 2024
2 parents 9f0464a + a2e3acc commit a26c0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/feature/search/src/lib/utils/service/fields.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ marker('search.filters.contact')
providedIn: 'root',
})
export class FieldsService {
private fields = {
protected fields = {
publisher: new OrganizationSearchField(this.injector),
format: new SimpleSearchField('format', this.injector, 'asc'),
resourceType: new TranslatedSearchField(
Expand Down Expand Up @@ -76,7 +76,7 @@ export class FieldsService {
return Object.keys(this.fields)
}

constructor(private injector: Injector) {}
constructor(protected injector: Injector) {}

getAvailableValues(fieldName: string) {
if (this.supportedFields.indexOf(fieldName) === -1)
Expand Down

0 comments on commit a26c0b8

Please sign in to comment.