1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/frontend/src/component/changeRequest/changesCount.ts

6 lines
229 B
TypeScript
Raw Normal View History

2022-11-24 12:29:14 +01:00
import { IChangeRequest } from './changeRequest.types';
export const changesCount = (changeRequest: IChangeRequest) =>
changeRequest.features.flatMap((feature) => feature.changes).length +
changeRequest.segments.length;