From 7e9243d8dc063bd481e202f73c2b16d367c6cbea Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 10 Oct 2023 20:05:48 +0800 Subject: [PATCH] :art: Rows in the database without bound blocks should not show created and updated Fix https://github.com/siyuan-note/siyuan/issues/9391 --- app/src/protyle/render/av/blockAttr.ts | 2 +- app/src/protyle/render/av/render.ts | 2 +- kernel/model/attribute_view.go | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 2acf88905..a3fa3b083 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -32,7 +32,7 @@ export const genAVValueHTML = (value: IAVCellValue) => { case "date": case "created": case "updated": - if (value[value.type].isNotEmpty || "date" !== value.type) { + if (value[value.type].isNotEmpty) { html = `${dayjs(value[value.type].content).format("YYYY-MM-DD HH:mm")}`; } if (value[value.type].hasEndDate && value[value.type].isNotEmpty2 && value[value.type].isNotEmpty) { diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts index 657fab8ae..f04d99ba3 100644 --- a/app/src/protyle/render/av/render.ts +++ b/app/src/protyle/render/av/render.ts @@ -107,7 +107,7 @@ style="width: ${column.width || "200px"}">${getCalcValue(column) || '