(tableId, table, forceDel)
| 1294 | objIsEqual |
| 1295 | ); |
| 1296 | const setValidTable = (tableId, table, forceDel) => ifTransformed( |
| 1297 | table, |
| 1298 | () => forceDel ? table : ifNotUndefined( |
| 1299 | middleware[2], |
| 1300 | (willSetTable) => whileMutating( |
| 1301 | () => willSetTable(tableId, structuredClone(table)) |
| 1302 | ), |
| 1303 | () => table |
| 1304 | ), |
| 1305 | (validTable) => mapMatch( |
| 1306 | mapEnsure(tablesMap, tableId, () => { |
| 1307 | tableIdsChanged(tableId, 1); |
| 1308 | mapSet(tablePoolFunctions, tableId, getPoolFunctions()); |
| 1309 | mapSet(tableCellIds, tableId, mapNew()); |
| 1310 | return mapNew(); |
| 1311 | }), |
| 1312 | validTable, |
| 1313 | (tableMap, rowId, row) => setValidRow(tableId, tableMap, rowId, row), |
| 1314 | (tableMap, rowId) => delValidRow(tableId, tableMap, rowId) |
| 1315 | ), |
| 1316 | objIsEqual |
| 1317 | ); |
| 1318 | const setValidRow = (tableId, tableMap, rowId, row, forceDel) => ifTransformed( |
| 1319 | row, |
| 1320 | () => forceDel ? row : ifNotUndefined( |
no test coverage detected
searching dependent graphs…