From 8f0ae8d6a8a35f985cf61a438d92f8f38073f852 Mon Sep 17 00:00:00 2001 From: Ivan Jelic Date: Mon, 28 Oct 2024 11:52:27 +0100 Subject: [PATCH] Setting Urgency to plain request format --- client/components/ContentLists/Automatic/FilterPanel.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/components/ContentLists/Automatic/FilterPanel.jsx b/client/components/ContentLists/Automatic/FilterPanel.jsx index e741e79..7431792 100644 --- a/client/components/ContentLists/Automatic/FilterPanel.jsx +++ b/client/components/ContentLists/Automatic/FilterPanel.jsx @@ -333,6 +333,14 @@ class FilterPanel extends React.Component { 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 const services = vocabularies.find((v) => v.id === "categories");