Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fixed issue with tables that contain only one cell
Laurent Cozic0b2f3dc10ae1
diff --git a/src/tables.js b/src/tables.jsindex 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 cellif (nodeContainsTable(tableNode)) return true;return false;}