From 3d04b8dbd5a0eff1679b2d1bb143b49846ad489f Mon Sep 17 00:00:00 2001 From: AlexisG Date: Fri, 8 Nov 2024 15:51:46 +0100 Subject: [PATCH] feat: Add Modify option to konnector files --- src/components/Actions/Items/modify.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Actions/Items/modify.jsx b/src/components/Actions/Items/modify.jsx index 7a4b18da..ce57c1d0 100644 --- a/src/components/Actions/Items/modify.jsx +++ b/src/components/Actions/Items/modify.jsx @@ -18,8 +18,9 @@ export const modify = ({ t, navigate }) => { disabled: docs => docs.length === 0, displayCondition: docs => docs.length === 1 && - !isFromKonnector(docs[0]) && - getCreatedByApp(docs[0]) === 'mespapiers', + (isFromKonnector(docs[0]) || + (!isFromKonnector(docs[0]) && + getCreatedByApp(docs[0]) === 'mespapiers')), action: docs => { const country = docs[0].metadata.country?.toLowerCase() const searchParams = new URLSearchParams({