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
1ef5e8722a
commit
6ad2296082
1 changed files with 2 additions and 0 deletions
|
|
@ -286,11 +286,13 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
|
||||||
attrView, err := av.ParseAttributeView(avID)
|
attrView, err := av.ParseAttributeView(avID)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogErrorf("parse attribute view [%s] failed: %s", avID, err)
|
logging.LogErrorf("parse attribute view [%s] failed: %s", avID, err)
|
||||||
|
unbindBlockAv(nil, avID, blockID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if 1 > len(attrView.Views) {
|
if 1 > len(attrView.Views) {
|
||||||
err = av.ErrViewNotFound
|
err = av.ErrViewNotFound
|
||||||
|
unbindBlockAv(nil, avID, blockID)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue