Files
CapaKraken/apps/web/src/lib/planningEntryIds.ts
T

10 lines
265 B
TypeScript

type PlanningEntryIdentity = {
id: string;
entityId?: string | null;
sourceAllocationId?: string | null;
};
export function getPlanningEntryMutationId(entry: PlanningEntryIdentity): string {
return entry.entityId ?? entry.sourceAllocationId ?? entry.id;
}