(
tableId: Id,
tableMap: TableMap,
rowId: Id,
row: Row,
skipMiddleware?: boolean,
)
| 726 | ) as RowMap; |
| 727 | |
| 728 | const applyRowDirectly = ( |
| 729 | tableId: Id, |
| 730 | tableMap: TableMap, |
| 731 | rowId: Id, |
| 732 | row: Row, |
| 733 | skipMiddleware?: boolean, |
| 734 | ): void => { |
| 735 | mapMatch( |
| 736 | mapEnsure(tableMap, rowId, () => { |
| 737 | rowIdsChanged(tableId, rowId, 1); |
| 738 | return mapNew(); |
| 739 | }), |
| 740 | row, |
| 741 | (rowMap, cellId, cell) => |
| 742 | ifNotUndefined( |
| 743 | getValidatedCell(tableId, rowId, cellId, cell as Cell), |
| 744 | (validCell) => |
| 745 | setValidCell( |
| 746 | tableId, |
| 747 | rowId, |
| 748 | rowMap, |
| 749 | cellId, |
| 750 | validCell, |
| 751 | skipMiddleware, |
| 752 | ), |
| 753 | ), |
| 754 | (rowMap, cellId) => |
| 755 | delValidCell(tableId, tableMap, rowId, rowMap, cellId, true), |
| 756 | ); |
| 757 | }; |
| 758 | |
| 759 | const setValidCell = ( |
| 760 | tableId: Id, |
no test coverage detected
searching dependent graphs…