Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…isher into content-lists-superdesk
  • Loading branch information
pavlovicnemanja committed Nov 6, 2024
2 parents 33b8af1 + 8f0ae8d commit 36d91a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/components/ContentLists/Automatic/FilterPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,18 +325,20 @@ 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");
}

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

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

// services
Expand Down

0 comments on commit 36d91a6

Please sign in to comment.