(config: RoutingConfigState)
| 527 | } |
| 528 | |
| 529 | function buildDrafts(config: RoutingConfigState): Record<string, DraftState> { |
| 530 | const next: Record<string, DraftState> = {}; |
| 531 | for (const mode of MODES) { |
| 532 | const rows = config.modes?.[mode]?.tiers ?? {}; |
| 533 | for (const tier of TIERS) { |
| 534 | next[draftKey(mode, tier)] = createDraft(rows[tier]); |
| 535 | } |
| 536 | } |
| 537 | return next; |
| 538 | } |
| 539 | |
| 540 | function parseCsv(value: string): string[] { |
| 541 | return value |
no test coverage detected