Skip to content

Commit

Permalink
Further changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Nov 1, 2024
1 parent 5c7ef75 commit d61ae52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class CoverageFormHeaderComponent extends React.PureComponent<IProps> {
const assignmentState = value.assigned_to?.state;
const cancelled = value.workflow_status === ASSIGNMENTS.WORKFLOW_STATE.CANCELLED;
const canEditAssignment = planningUtils.isCoverageDraft(value) ||
(!!addNewsItemToPlanning && !value.coverage_id && !get(value, 'scheduled_update_id'));
(!!addNewsItemToPlanning && !value.coverage_id && !((value as ICoverageScheduledUpdate).scheduled_update_id));

Check failure on line 84 in client/components/Coverages/CoverageEditor/CoverageFormHeader.tsx

View workflow job for this annotation

GitHub Actions / client (14.x)

This line has a length of 122. Maximum allowed is 120

if (!deskAssigned && (!userAssigned || !coverageProvider)) {
return (
Expand Down Expand Up @@ -185,7 +185,7 @@ export class CoverageFormHeaderComponent extends React.PureComponent<IProps> {
autoFocus
/>
</ListRow>
{onRemoveAssignment != null && (
{onRemoveAssignment != null && value.assigned_to.assignment_id != null && (
<ListRow>
<Button
text={gettext('Remove')}
Expand Down

0 comments on commit d61ae52

Please sign in to comment.