mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Auto verify the database name when clicking the block superscript icon https://github.com/siyuan-note/siyuan/issues/10861
This commit is contained in:
parent
193993d110
commit
be67ffa288
1 changed files with 7 additions and 0 deletions
|
|
@ -289,6 +289,13 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
|||
return
|
||||
}
|
||||
|
||||
if !attrView.ExistBlock(blockID) {
|
||||
// 比如剪切后粘贴,块 ID 会变,但是属性还在块上,这里做一次数据订正
|
||||
// Auto verify the database name when clicking the block superscript icon https://github.com/siyuan-note/siyuan/issues/10861
|
||||
unbindBlockAv(nil, avID, blockID)
|
||||
return
|
||||
}
|
||||
|
||||
var keyValues []*av.KeyValues
|
||||
for _, kv := range attrView.KeyValues {
|
||||
kValues := &av.KeyValues{Key: kv.Key}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue