Skip to content

Commit

Permalink
SK-704 add encodeURI options in get
Browse files Browse the repository at this point in the history
  • Loading branch information
skyflow-lipsa committed Oct 19, 2023
1 parent f127eaa commit 53d8100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vault-api/core/Reveal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getSkyflowIdRecordsFromVault = (
paramList += `skyflow_ids=${skyflowId}&`;
});

if(Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI === true) {
if(options && Object.prototype.hasOwnProperty.call(options, 'encodeURI') && options?.encodeURI === true) {
skyflowIdRecord.columnValues?.forEach((column) => {
var encode_column_value = encodeURIComponent(column)
paramList += `column_name=${skyflowIdRecord.columnName}&column_values=${encode_column_value}&`;
Expand Down

0 comments on commit 53d8100

Please sign in to comment.