mirror of
https://github.com/status-im/codimd.git
synced 2025-02-16 18:56:57 +00:00
fix: should not clear guest history when guest pin note
Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
parent
8c20d9f625
commit
b6d5db3b55
@ -181,7 +181,7 @@ export function getStorageHistory (callback) {
|
||||
let data = store.get('notehistory')
|
||||
if (data) {
|
||||
if (typeof data === 'string') { data = JSON.parse(data) }
|
||||
callback(data)
|
||||
return callback(data)
|
||||
}
|
||||
// eslint-disable-next-line standard/no-callback-literal
|
||||
callback([])
|
||||
|
Loading…
x
Reference in New Issue
Block a user