Skip to content

Build your personal knowledge base with Trilium Notes

Fixed issue with tables that contain only one cell

Laurent Cozic0b2f3dc10ae1
diff --git a/src/tables.js b/src/tables.js
index 86aa7e9e52..74f5c526d5 100644
--- a/src/tables.js
+++ b/src/tables.js
@@ -131,7 +131,7 @@ function nodeContainsTable(node) {
function tableShouldBeSkipped(tableNode) {
if (!tableNode) return true;
if (!tableNode.rows) return true;
- if (tableNode.rows.length <= 1 && tableNode.rows[0].childNodes.length <= 1) return true; // Table with only one cell
+ if (tableNode.rows.length === 1 && tableNode.rows[0].childNodes.length <= 1) return true; // Table with only one cell
if (nodeContainsTable(tableNode)) return true;
return false;
}