Skip to content

Commit b6d5db3

Browse files
committed
fix: should not clear guest history when guest pin note
Signed-off-by: Raccoon <[email protected]>
1 parent 8c20d9f commit b6d5db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/history.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function getStorageHistory (callback) {
181181
let data = store.get('notehistory')
182182
if (data) {
183183
if (typeof data === 'string') { data = JSON.parse(data) }
184-
callback(data)
184+
return callback(data)
185185
}
186186
// eslint-disable-next-line standard/no-callback-literal
187187
callback([])

0 commit comments

Comments
 (0)