Skip to content

Commit

Permalink
feat: Add Modify option to konnector files
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Nov 12, 2024
1 parent 0b9b2ba commit 3d04b8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Actions/Items/modify.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3d04b8d

Please sign in to comment.