From d8faf6ee1eda48c8a83ce2d1fc14fc055024d27d Mon Sep 17 00:00:00 2001 From: AlexisG Date: Mon, 18 Nov 2024 12:54:13 +0100 Subject: [PATCH] feat: Revert to adding filter condition to display konnectorBlock This reverts commit bb59023be43e8ad5c6ca22141ece56529f77f5af. This commit will hide the konnectoBlock as soon as the document is modified via MesPapiers. However, we only want to hide the konnectoBlock for documents that have already had the carbonCopy metadata AND if the modification only concerns the binary or the metadata. --- packages/cozy-viewer/src/Panel/getPanelBlocks.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/cozy-viewer/src/Panel/getPanelBlocks.jsx b/packages/cozy-viewer/src/Panel/getPanelBlocks.jsx index e34a4b0062..fa2a25f79d 100644 --- a/packages/cozy-viewer/src/Panel/getPanelBlocks.jsx +++ b/packages/cozy-viewer/src/Panel/getPanelBlocks.jsx @@ -27,11 +27,7 @@ export const getPanelBlocksSpecs = (isPublic = false) => ({ component: Qualification }, konnector: { - condition: file => - isFromKonnector(file) && - !isPublic && - // When doc has been edited from mespapiers, we don't want to display the konnector block - !file.cozyMetadata?.updatedByApps?.find(app => app.slug === 'mespapiers'), + condition: file => isFromKonnector(file) && !isPublic, component: KonnectorBlock }, certifications: {