From c8cea9e7c703a9d3338dc5ea5a6f3f2943c08cda Mon Sep 17 00:00:00 2001 From: Omri Levy <61207713+Omri-Levy@users.noreply.github.com> Date: Tue, 10 Dec 2024 10:40:31 +0200 Subject: [PATCH] refactor(backoffice-vs): removed disable state for the type dropdown (#2880) --- .../lib/blocks/hooks/useDocumentBlocks/useDocumentBlocks.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/backoffice-v2/src/lib/blocks/hooks/useDocumentBlocks/useDocumentBlocks.tsx b/apps/backoffice-v2/src/lib/blocks/hooks/useDocumentBlocks/useDocumentBlocks.tsx index 1956caf98e..0aefaf1fd0 100644 --- a/apps/backoffice-v2/src/lib/blocks/hooks/useDocumentBlocks/useDocumentBlocks.tsx +++ b/apps/backoffice-v2/src/lib/blocks/hooks/useDocumentBlocks/useDocumentBlocks.tsx @@ -439,14 +439,12 @@ export const useDocumentBlocks = ({ const fieldValue = getFieldValue(); const isEditableDecision = isDoneWithRevision || !decision?.status; const isIndividual = checkIsIndividual(workflow); - const isEditableType = (title === 'type' && isIndividual) || title !== 'type'; const isEditableCategory = (title === 'category' && isIndividual) || title !== 'category'; const isEditableField = [ isEditableDecision, isEditable, caseState.writeEnabled, - isEditableType, isEditableCategory, ].every(Boolean);