strip double quotes and use single in ID

This commit is contained in:
Martin McKeaveney 2021-06-23 23:35:53 +01:00
parent 85121db2c5
commit 0de6038551
1 changed files with 1 additions and 1 deletions

View File

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