Skip to content

Commit

Permalink
refactor(backoffice-vs): removed disable state for the type dropdown (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy authored Dec 10, 2024
1 parent fe55bfa commit c8cea9e
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c8cea9e

Please sign in to comment.