Skip to content

Commit

Permalink
Merge pull request #1106 from danskernesdigitalebibliotek/feature/DDF…
Browse files Browse the repository at this point in the history
…LSBP-520-raekkefolge-pa-filtre-onskes-aendret

Reordering the advanced search filters
  • Loading branch information
clausbruun authored Apr 15, 2024
2 parents b75c1b5 + cd64925 commit 5573a60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions src/components/facet-browser/__snapshots__/helper.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ exports[`formatFacetTerms > should format facet terms 1`] = `
exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
[
{
"name": "mainLanguages",
"name": "workTypes",
"values": [
{
"key": "",
Expand All @@ -80,7 +80,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "accessTypes",
"name": "creators",
"values": [
{
"key": "",
Expand All @@ -89,7 +89,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "childrenOrAdults",
"name": "subjects",
"values": [
{
"key": "",
Expand All @@ -98,7 +98,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "creators",
"name": "fictionNonfiction",
"values": [
{
"key": "",
Expand All @@ -107,7 +107,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "fictionNonfiction",
"name": "childrenOrAdults",
"values": [
{
"key": "",
Expand All @@ -116,7 +116,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "fictionalCharacters",
"name": "accessTypes",
"values": [
{
"key": "",
Expand All @@ -125,7 +125,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "genreAndForm",
"name": "mainLanguages",
"values": [
{
"key": "",
Expand All @@ -134,7 +134,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "materialTypesSpecific",
"name": "genreAndForm",
"values": [
{
"key": "",
Expand All @@ -143,7 +143,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "subjects",
"name": "materialTypesSpecific",
"values": [
{
"key": "",
Expand All @@ -152,7 +152,7 @@ exports[`getPlaceHolderFacets > should get placeholder facets 1`] = `
],
},
{
"name": "workTypes",
"name": "fictionalCharacters",
"values": [
{
"key": "",
Expand Down
12 changes: 6 additions & 6 deletions src/components/facet-browser/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import { Filter, FilterItemTerm } from "../../core/filter.slice";
import invalidSwitchCase from "../../core/utils/helpers/invalid-switch-case";

export const allFacetFields = [
FacetField.MainLanguages,
FacetField.AccessTypes,
FacetField.ChildrenOrAdults,
FacetField.WorkTypes,
FacetField.Creators,
FacetField.Subjects,
FacetField.FictionNonfiction,
FacetField.FictionalCharacters,
FacetField.ChildrenOrAdults,
FacetField.AccessTypes,
FacetField.MainLanguages,
FacetField.GenreAndForm,
FacetField.MaterialTypesSpecific,
FacetField.Subjects,
FacetField.WorkTypes
FacetField.FictionalCharacters
];

export const getPlaceHolderFacets = (facets: string[]) =>
Expand Down

0 comments on commit 5573a60

Please sign in to comment.