Skip to content

Commit

Permalink
Merge pull request #354 from pavlovicnemanja/SWP-2311
Browse files Browse the repository at this point in the history
Removed urgency as separate value from filter payload
  • Loading branch information
IvanJelicSF authored Oct 24, 2024
2 parents 5a1dfff + 8e00ddf commit 69c68ad
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions client/components/ContentLists/Automatic/FilterPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,20 +325,14 @@ class FilterPanel extends React.Component {
let filters = _.pickBy({ ...this.state.filters }, _.identity);
let newMetadata = {};

// priority and urgency
// priority
const priority = vocabularies.find((v) => v.id === "priority");

if (priority) {
newMetadata.priority = priority.value[0].value;
vocabularies = vocabularies.filter((v) => v.id !== "priority");
}

const urgency = vocabularies.find((v) => v.id === "urgency");

if (urgency) {
newMetadata.urgency = urgency.value[0].value;
}

// services
const services = vocabularies.find((v) => v.id === "categories");

Expand Down

0 comments on commit 69c68ad

Please sign in to comment.