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
2023-08-04 15:34:03 +03:00

6 lines
227 B
TypeScript

import { IChangeRequest } from './changeRequest.types';
export const changesCount = (changeRequest: IChangeRequest) =>
changeRequest.features.flatMap(feature => feature.changes).length +
changeRequest.segments.length;