mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e2d0a0051d
commit
6e9d474bbe
2 changed files with 18 additions and 3 deletions
|
|
@ -186,6 +186,15 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
|
|||
continue
|
||||
}
|
||||
|
||||
if av.KeyTypeMAsset == keyValues.Key.Type {
|
||||
if nil != nearItem {
|
||||
if _, ok := ret[keyValues.Key.ID]; !ok {
|
||||
ret[keyValues.Key.ID] = getNewValueByNearItem(nearItem, keyValues.Key, addingItemID)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
newValue := filter.GetAffectValue(keyValues.Key, addingItemID)
|
||||
if nil == newValue {
|
||||
newValue = getNewValueByNearItem(nearItem, keyValues.Key, addingItemID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue