Skip to content

Commit

Permalink
[SWP-2311] feat(urgency): Removed urgency as separate value from filt…
Browse files Browse the repository at this point in the history
…er payload
  • Loading branch information
pavlovicnemanja committed Oct 24, 2024
1 parent 24096d5 commit 8e00ddf
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 8e00ddf

Please sign in to comment.