1
0
Fork 0
mirror of synced 2024-06-28 19:10:33 +12:00

string based keyProps not being parsed properly by handlebars

This commit is contained in:
Martin McKeaveney 2021-06-23 23:15:16 +01:00
parent b63a901a47
commit 6857dc08e7

View file

@ -24,7 +24,7 @@ exports.generateRowIdField = (keyProps = []) => {
keyProps = [keyProps]
}
// this conserves order and types
return encodeURIComponent(JSON.stringify(keyProps))
return encodeURIComponent(JSON.stringify(keyProps).replace(/"/g, ''))
}
// should always return an array