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
235 B
TypeScript
Raw Normal View History

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