Skip to content

Commit f85175b

Browse files
committed
fix: Fix Bookmark#hash()
Signed-off-by: Marcel Klehr <[email protected]>
1 parent b175c45 commit f85175b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class Bookmark<L extends TItemLocation> {
8888
if (!this.hashValue) {
8989
this.hashValue = {}
9090
}
91-
if (typeof this.hashValue[hashFn] !== 'undefined') {
91+
if (typeof this.hashValue[hashFn] === 'undefined') {
9292
const json = JSON.stringify({ title: this.title, url: this.url })
9393
if (hashFn === 'sha256') {
9494
this.hashValue[hashFn] = await Crypto.sha256(json)

0 commit comments

Comments
 (0)