Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Nov 1, 2024
1 parent e47a626 commit 55c9551
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ export class CoverageFormHeaderComponent extends React.PureComponent<IProps> {
const canEditAssignment = planningUtils.isCoverageDraft(value) ||
(!!addNewsItemToPlanning && !value.coverage_id && !get(value, 'scheduled_update_id'));

const autoAddToWf = true;

if (!deskAssigned && (!userAssigned || !coverageProvider)) {
return (
<Item noBg={true} noHover={true}>
Expand Down Expand Up @@ -174,7 +172,7 @@ export class CoverageFormHeaderComponent extends React.PureComponent<IProps> {
</ListRow>
)}
</Column>
{(canEditAssignment || autoAddToWf) && !readOnly && (
{(canEditAssignment || planningConfig.planning_auto_assign_to_workflow) && !readOnly && (
<Column>
<ListRow>
<Button
Expand Down

0 comments on commit 55c9551

Please sign in to comment.