Skip to content

Commit 7f5f171

Browse files
authored
MMI-3363 (#2519)
* include IsOther for series and added () option * include IsOther for series and added () option (#2511) * Update "shows & programs" dropdown list sort order * update "shows & programs" dropdown sort order (#2513) * include IsOther for series and added () option * include IsOther for series and added () option (#2511) (#2512) * Update "shows & programs" dropdown list sort order * MMI-3363: update "shows & programs" dropdown list sort order (#2514) * include IsOther for series and added () option * include IsOther for series and added () option (#2511) (#2512) * Update "shows & programs" dropdown list sort order * use utility function to sort * update "shows & program" value () returns null * MMI-3363 (#2517) * MMI-3363: Update the "shows & programs" dropdown list sort order by alphabet (#2516) * include IsOther for series and added () option * include IsOther for series and added () option (#2511) * Update "shows & programs" dropdown list sort order * update "shows & programs" dropdown sort order (#2513) * include IsOther for series and added () option * include IsOther for series and added () option (#2511) (#2512) * Update "shows & programs" dropdown list sort order * MMI-3363: update "shows & programs" dropdown list sort order (#2514) * include IsOther for series and added () option * include IsOther for series and added () option (#2511) (#2512) * Update "shows & programs" dropdown list sort order * use utility function to sort * update "shows & program" value () returns null * update shows & program null value to be [NONE] * resolve conflict * update shows & program null value to be [NONE]
1 parent 35f53cc commit 7f5f171

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/editor/src/features/content/hooks/useElasticsearch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const useElasticsearch = () => {
8686
case AdvancedSearchKeys.Series: {
8787
const sanitized = typeof term === 'string' ? term.trim() : term;
8888
if (sanitized === '' || sanitized === undefined || sanitized === null) return undefined;
89-
if (sanitized === '()') {
89+
if (sanitized === '[NONE]') {
9090
return {
9191
bool: {
9292
should: [

app/editor/src/features/content/list-view/components/tool-bar/filter/AdvancedSearchSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const AdvancedSearchSection: React.FC<IAdvancedSearchSectionProps> = () =
4848
const sortedOptions = [...enabledOptions].sort(
4949
sortObject((item) => String(item.label ?? '').toLocaleLowerCase()),
5050
);
51-
return [new OptionItem('()', '()'), ...sortedOptions];
51+
return [new OptionItem('[NONE]', '[NONE]'), ...sortedOptions];
5252
}, [series, seriesOptions]);
5353

5454
const updateAdvancedFilter = React.useCallback(

app/editor/src/features/content/papers/components/AdvancedFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const AdvancedFilter: React.FC<IAdvancedFilterProps> = ({
5858
const sortedOptions = [...enabledOptions].sort(
5959
sortObject((item) => String(item.label ?? '').toLocaleLowerCase()),
6060
);
61-
return [new OptionItem('()', '()'), ...sortedOptions];
61+
return [new OptionItem('[NONE]', '[NONE]'), ...sortedOptions];
6262
}, [series, seriesOptions]);
6363

6464
const updateAdvancedFilter = React.useCallback(

0 commit comments

Comments
 (0)