This commit is contained in:
mike12345567 2021-07-05 15:16:32 +01:00
parent 16581552cb
commit ca1c48232b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export function breakRowIdField(_id: string) {
}
// have to replace on the way back as we swapped out the double quotes
// when encoding, but JSON can't handle the single quotes
const decoded = decodeURIComponent(_id).replace(/'/g, "\"")
const decoded = decodeURIComponent(_id).replace(/'/g, '"')
const parsed = JSON.parse(decoded)
return Array.isArray(parsed) ? parsed : [parsed]
}