mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🎨 Adding rows after setting the sort field in the database table view no longer fills in the default value https://github.com/siyuan-note/siyuan/issues/10486
This commit is contained in:
parent
697c17635d
commit
7956a60dcc
2 changed files with 12 additions and 1 deletions
|
|
@ -78,7 +78,15 @@ const (
|
|||
)
|
||||
|
||||
func (filter *ViewFilter) GetAffectValue(key *Key) (ret *Value) {
|
||||
// Improve adding rows of the filtered database table view https://github.com/siyuan-note/siyuan/issues/10025
|
||||
if nil != filter.Value && filter.Value.IsGenerated() {
|
||||
// 自动生成类型的过滤条件不设置默认值
|
||||
return nil
|
||||
}
|
||||
|
||||
if nil == filter.Value && nil != filter.RelativeDate {
|
||||
// 相对日期今天的动态日期不设置默认值
|
||||
return nil
|
||||
}
|
||||
|
||||
ret = filter.Value.Clone()
|
||||
switch filter.Value.Type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue