Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 4abe10c

Browse files
committed
fix: pagination filter is incorrect when frontmatter key is number
1 parent e66e9ae commit 4abe10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node/util.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ const value = id;
137137
return keys.some(key => {
138138
const _value = page.frontmatter[key]
139139
if (Array.isArray(_value)) {
140-
return _value.some(i => i === value)
140+
return _value.some(i => i == value)
141141
}
142-
return _value === value
142+
return _value == value
143143
})
144144
`
145145
);

0 commit comments

Comments
 (0)