Skip to content

Commit

Permalink
🐛 Editor not automatically refreshed after rolling back document #13419
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 10, 2024
1 parent 1df6209 commit 914f631
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/util/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ var (
)

func GetTreeID(treePath string) string {
if strings.Contains(treePath, "\\") {
return strings.TrimSuffix(filepath.Base(treePath), ".sy")
}
return strings.TrimSuffix(path.Base(treePath), ".sy")
}

Expand Down

0 comments on commit 914f631

Please sign in to comment.