mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Data History - File history - Assets support update operation indexing https://github.com/siyuan-note/siyuan/issues/11177
This commit is contained in:
5
kernel/cache/asset.go
vendored
5
kernel/cache/asset.go
vendored
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user