From 8e00ddf9223e9c6252808335d7abc928022ad1ed Mon Sep 17 00:00:00 2001 From: pavlovicnemanja Date: Thu, 24 Oct 2024 12:40:07 +0200 Subject: [PATCH] [SWP-2311] feat(urgency): Removed urgency as separate value from filter payload --- client/components/ContentLists/Automatic/FilterPanel.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/components/ContentLists/Automatic/FilterPanel.jsx b/client/components/ContentLists/Automatic/FilterPanel.jsx index 1587e0f..e741e79 100644 --- a/client/components/ContentLists/Automatic/FilterPanel.jsx +++ b/client/components/ContentLists/Automatic/FilterPanel.jsx @@ -325,7 +325,7 @@ 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) { @@ -333,12 +333,6 @@ class FilterPanel extends React.Component { 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");