Skip to content

Commit 72ab873

Browse files
authored
Fixed #56
1 parent b32fa71 commit 72ab873

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ const metaTagProperties: string[] =
4141
const getTagKey = (tag: TagDescription, properties: string[]) => {
4242
// pick allowed properties and sort them
4343
const tagProps = Object.fromEntries(
44-
Object.entries(tag.props)
45-
.filter(([k]) => properties.includes(k))
44+
properties
45+
.filter(k => k in tag.props)
46+
.map(k => [k, tag.props[k]])
4647
.sort()
4748
);
4849

0 commit comments

Comments
 (0)