fix: remote line min lines.

This commit is contained in:
a.bouhuolia
2022-03-21 13:41:07 +02:00
parent a533c3cb76
commit 932afddf11
5 changed files with 17 additions and 13 deletions

View File

@@ -177,7 +177,7 @@ export const mutateTableRow = R.curry((rowIndex, newRow, rows) => {
export const deleteTableRow = R.curry((rowIndex, defaultEntry, rows) => {
return compose(
// Ensure minimum lines count.
updateMinEntriesLines(4, defaultEntry),
updateMinEntriesLines(MIN_LINES_NUMBER, defaultEntry),
// Remove the line by the given index.
updateRemoveLineByIndex(rowIndex),
)(rows);