🎨 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
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
}