From 8eed1d65baebabb35383a012a8eaa9ab29fdf872 Mon Sep 17 00:00:00 2001 From: Matthieu Benoist <mbenoist@ausy-group.com> Date: Fri, 24 Jul 2020 15:47:37 +0200 Subject: [PATCH] FIX incorrect accepted sort value array, preventing sharing search links with sort params. --- src/app/datasets/services/research-url.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/datasets/services/research-url.service.ts b/src/app/datasets/services/research-url.service.ts index b9b5f107..bd9df33e 100644 --- a/src/app/datasets/services/research-url.service.ts +++ b/src/app/datasets/services/research-url.service.ts @@ -57,7 +57,7 @@ export class ResearchUrlService { value, order: startWithNeg ? 'desc' : 'asc', }; - const acceptedSortValues = ['date, relevance, alphabetical']; + const acceptedSortValues = ['date', 'relevance', 'alphabetical']; // Check if sort value exists if (acceptedSortValues.includes(optionsSort.value)) { options.sortOptions = optionsSort; -- GitLab