siyuan-note / siyuan

A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang.
https://b3log.org/siyuan
GNU Affero General Public License v3.0
22.11k stars 1.57k forks source link

`Untitled` is displayed when the original record primary key value of the related column is empty #10067

Closed zxhd863943427 closed 10 months ago

zxhd863943427 commented 10 months ago

database 关联时,假如原表中主键为空值,会显示出id

Is there an existing issue for this?

Can the issue be reproduced with the default theme (daylight/midnight)?

Could the issue be due to extensions?

Describe the problem

如图所示: 图片

Expected result

我个人是希望显示空白值,但是这样确实就找不到了对应的列了,不知道这个是不是bug。

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.12.0
- Operating System: win10 
- Browser (if used):

Log file

无需日志

More information

No response

88250 commented 10 months ago

似乎显示 Untitled 要更好一些?

zxhd863943427 commented 10 months ago

这也可以,话说notion、flowus、wolai是怎么处理的?

zxhd863943427 commented 10 months ago

notion是直接不显示这一条了……

zxhd863943427 commented 10 months ago

我去问一下胖哥吧,看看wolai、flowus之类的是怎么处理的

zxhd863943427 commented 10 months ago

哦还有一个刚刚发现的问题我就不打算单独开issue了,在不编辑的情况下,relation返回的默认值是null,而不是空列表[ ],这会导致属性面板出错的 图片 图片

88250 commented 10 months ago

收到。