mirror of https://github.com/status-im/codimd.git
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')
|
let data = store.get('notehistory')
|
||||||
if (data) {
|
if (data) {
|
||||||
if (typeof data === 'string') { data = JSON.parse(data) }
|
if (typeof data === 'string') { data = JSON.parse(data) }
|
||||||
callback(data)
|
return callback(data)
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line standard/no-callback-literal
|
// eslint-disable-next-line standard/no-callback-literal
|
||||||
callback([])
|
callback([])
|
||||||
|
|
Loading…
Reference in New Issue