An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle:
Vanessa2e850de49e3e
diff --git a/app/src/protyle/render/av/asset.ts b/app/src/protyle/render/av/asset.tsindex 26cb69c20e..0d07cdb531 100644--- a/app/src/protyle/render/av/asset.ts+++ b/app/src/protyle/render/av/asset.ts@@ -108,15 +108,7 @@ export const updateAssetCell = (options: {if (!options.blockElement.contains(item)) {const rowElement = hasClosestByClassName(item, "av__row");if (rowElement) {- let cellIndex: number;- rowElement.querySelectorAll(".av__cell").forEach((cellElement: HTMLElement, ghostIndex) => {- if (cellElement.dataset.id === item.dataset.id) {- cellIndex = ghostIndex- }- });- if (typeof cellIndex === "number") {- item = options.cellElements[elementIndex] = options.blockElement.querySelectorAll(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell`)[cellIndex] as HTMLElement;- }+ item = options.cellElements[elementIndex] = options.blockElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${item.dataset.colId}"]`) as HTMLElement}}const cellValue = genCellValueByElement(getTypeByCellElement(item) || item.dataset.type as TAVCol, item);diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.tsindex e77ea632fd..e31cfdcae2 100644--- a/app/src/protyle/render/av/select.ts+++ b/app/src/protyle/render/av/select.ts@@ -432,15 +432,7 @@ export const addColOptionOrCell = (protyle: IProtyle, data: IAV, cellElements: HcellElements.forEach((item, index) => {const rowElement = hasClosestByClassName(item, "av__row");if (rowElement) {- let cellIndex: number;- rowElement.querySelectorAll(".av__cell").forEach((cellElement: HTMLElement, ghostIndex) => {- if (cellElement.dataset.id === item.dataset.id) {- cellIndex = ghostIndex- }- });- if (typeof cellIndex === "number") {- cellElements[index] = blockElement.querySelectorAll(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell`)[cellIndex] as HTMLElement;- }+ cellElements[index] = blockElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${item.dataset.colId}"]`) as HTMLElement;}});}