An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 数据库 tab 修改没有内容的单元格
Vanessa8527b868c694
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.tsindex b1ddc5e290..a589d8859b 100644--- a/app/src/protyle/render/av/cell.ts+++ b/app/src/protyle/render/av/cell.ts@@ -250,10 +250,15 @@ const updateCellValue = (protyle: IProtyle, type: TAVCol, cellElements: HTMLElemcellElements[0] = protyle.wysiwyg.element.querySelector(previousId ? `[data-av-id="${avid}"] .av__row[data-id="${previousId}"]` : `[data-av-id="${avid}"] .av__row--header`).nextElementSibling.querySelector('[data-detached="true"]');} else {// 修改单元格后立即修改其他单元格- cellElements[0] = protyle.wysiwyg.element.querySelector(`.av__cell[data-id="${cellElements[0].dataset.id}"]`);- if (!cellElements[0]) {+ let tempElement = protyle.wysiwyg.element.querySelector(`.av__cell[data-id="${cellElements[0].dataset.id}"]`) as HTMLElement;+ if (!tempElement) {+ // 修改单元格后修改其他没有内容的单元格(id 会随机)+ tempElement = protyle.wysiwyg.element.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${cellElements[0].dataset.colId}"]`) as HTMLElement+ }+ if (!tempElement) {return;}+ cellElements[0] = tempElement;}}if (cellElements.length === 1 && cellElements[0].dataset.detached === "true" && !rowElement.dataset.id) {