(
tableId: Id,
tableMap: TableMap,
rowId: Id,
cellId: Id,
validCell: Cell,
skipMiddleware?: boolean,
)
| 786 | ); |
| 787 | |
| 788 | const setCellIntoNewRow = ( |
| 789 | tableId: Id, |
| 790 | tableMap: TableMap, |
| 791 | rowId: Id, |
| 792 | cellId: Id, |
| 793 | validCell: Cell, |
| 794 | skipMiddleware?: boolean, |
| 795 | ): void => |
| 796 | ifNotUndefined( |
| 797 | mapGet(tableMap, rowId), |
| 798 | (rowMap): any => |
| 799 | setValidCell(tableId, rowId, rowMap, cellId, validCell, skipMiddleware), |
| 800 | () => { |
| 801 | const rowMap: RowMap = mapNew(); |
| 802 | mapSet(tableMap, rowId, rowMap); |
| 803 | rowIdsChanged(tableId, rowId, 1); |
| 804 | objMap( |
| 805 | addDefaultsToRow({[cellId]: validCell}, tableId, rowId), |
| 806 | (cell, cellId) => |
| 807 | setValidCell( |
| 808 | tableId, |
| 809 | rowId, |
| 810 | rowMap, |
| 811 | cellId, |
| 812 | cell as Cell, |
| 813 | skipMiddleware, |
| 814 | ), |
| 815 | ); |
| 816 | }, |
| 817 | ); |
| 818 | |
| 819 | const setValidValues = ( |
| 820 | values: Values, |
no test coverage detected
searching dependent graphs…