Browse Source

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 1 year ago
parent
commit
cf8529249d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      kernel/api/filetree.go

+ 1 - 2
kernel/api/filetree.go

@@ -526,11 +526,10 @@ func duplicateDoc(c *gin.Context) {
 		return
 		return
 	}
 	}
 
 
-	p := tree.Path
 	notebook := tree.Box
 	notebook := tree.Box
 	box := model.Conf.Box(notebook)
 	box := model.Conf.Box(notebook)
 	model.DuplicateDoc(tree)
 	model.DuplicateDoc(tree)
-	pushCreate(box, p, tree.Root.ID, arg)
+	pushCreate(box, tree.Path, tree.ID, arg)
 
 
 	ret.Data = map[string]interface{}{
 	ret.Data = map[string]interface{}{
 		"id":       tree.Root.ID,
 		"id":       tree.Root.ID,