Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuess committed Mar 24, 2024
1 parent 034a5a4 commit 3e97ffa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/Blocks/DownloadFiltersMapping.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const FooComponent = ({ data }) => {
});
let map = {
facet_fields: ff,
search_sections: data.search_sections && Object.fromEntries(
data.search_sections.items.map((el) => {
return [el.section, el.label];
}),
),
search_sections:
data.search_sections &&
Object.fromEntries(
data.search_sections.items.map((el) => {
return [el.section, el.label];
}),
),
};
const fileData = JSON.stringify(map);
const blob = new Blob([fileData], { type: 'text/plain' });
Expand Down

0 comments on commit 3e97ffa

Please sign in to comment.