diff --git a/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.spec.ts b/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.spec.ts index df70b95ee..a4212f14e 100644 --- a/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.spec.ts +++ b/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.spec.ts @@ -2461,7 +2461,7 @@ describe('lieux-mediation-numerique-list presenter', (): void => { ); const searchResults: ResultFoundPresentation<{ id: string; type: string }>[] = await firstValueFrom( - lieuxMediationNumeriqueListPresenter.search$('ANONYM', 2) + lieuxMediationNumeriqueListPresenter.search$('ANONYM', false, 2) ); expect[]>(searchResults).toStrictEqual([ diff --git a/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.ts b/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.ts index 39fd747bc..535959d12 100644 --- a/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.ts +++ b/src/features/core/presenters/lieux-mediation-numerique/lieux-mediation-numerique.presenter.ts @@ -380,7 +380,7 @@ export class LieuxMediationNumeriquePresenter implements Searchable<{ id: string public search$( searchTerm: string, - fromOrientation: boolean, + fromOrientation?: boolean, limit: number = 5 ): Observable[]> { return fromOrientation