(sectionId)
| 621 | } |
| 622 | |
| 623 | function findSectionOrThrow(sectionId) { |
| 624 | const section = stateCache.sections.find((item) => item.id === sectionId); |
| 625 | if (!section) { |
| 626 | throw new CanvasError("section_not_found", `Unknown section: ${sectionId}`); |
| 627 | } |
| 628 | return section; |
| 629 | } |
| 630 | |
| 631 | function addChange(change) { |
| 632 | const timestamp = safeString(change.timestamp, nowIso()); |
no outgoing calls
no test coverage detected