mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 01:40:46 +08:00
🐛 文档转换标题后文档树刷新不正确 https://github.com/siyuan-note/siyuan/issues/7435
This commit is contained in:
parent
98350e7768
commit
12206201cb
@ -104,8 +104,6 @@ func (tx *Transaction) doUnfoldHeading(operation *Operation) (ret *TxErr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath string, err error) {
|
func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath string, err error) {
|
||||||
WaitForWritingFiles()
|
|
||||||
|
|
||||||
srcTree, _ := loadTreeByBlockID(srcID)
|
srcTree, _ := loadTreeByBlockID(srcID)
|
||||||
if nil == srcTree {
|
if nil == srcTree {
|
||||||
err = ErrBlockNotFound
|
err = ErrBlockNotFound
|
||||||
@ -248,8 +246,6 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Heading2Doc(srcHeadingID, targetBoxID, targetPath string) (srcRootBlockID, newTargetPath string, err error) {
|
func Heading2Doc(srcHeadingID, targetBoxID, targetPath string) (srcRootBlockID, newTargetPath string, err error) {
|
||||||
WaitForWritingFiles()
|
|
||||||
|
|
||||||
srcTree, _ := loadTreeByBlockID(srcHeadingID)
|
srcTree, _ := loadTreeByBlockID(srcHeadingID)
|
||||||
if nil == srcTree {
|
if nil == srcTree {
|
||||||
err = ErrBlockNotFound
|
err = ErrBlockNotFound
|
||||||
|
@ -27,8 +27,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID, newTargetPath string, err error) {
|
func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID, newTargetPath string, err error) {
|
||||||
WaitForWritingFiles()
|
|
||||||
|
|
||||||
srcTree, _ := loadTreeByBlockID(srcListItemID)
|
srcTree, _ := loadTreeByBlockID(srcListItemID)
|
||||||
if nil == srcTree {
|
if nil == srcTree {
|
||||||
err = ErrBlockNotFound
|
err = ErrBlockNotFound
|
||||||
|
Loading…
Reference in New Issue
Block a user