KamoCRM

Make EditableCard onEdit optional so reassignment gating type-checks

Fixkamo-internal
Shipped
July 2, 2026 at 2:53 AM UTC
Author
kamo
Commit
3ca688c

The assignment card passes `canReassignManually ? startEditAssignment : undefined` to EditableCard.onEdit, but onEdit was typed `() => void` (required), failing the production type check. Make onEdit optional and hide the edit affordance when it's absent (a card the user can't edit shows no pencil).

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing