🎨 Data History - File history - Assets support update operation indexing https://github.com/siyuan-note/siyuan/issues/11177

This commit is contained in:
Daniel 2024-04-28 21:38:28 +08:00
parent f2c593b807
commit dca46b9056
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 15 additions and 23 deletions

View file

@ -41,7 +41,10 @@ func GetAssets() (ret map[string]*Asset) {
assetsLock.Lock()
defer assetsLock.Unlock()
ret = assetsCache
ret = map[string]*Asset{}
for k, v := range assetsCache {
ret[k] = v
}
return
}