Skip to content

Commit

Permalink
fixes bug where objectassign was persisting between requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmullen authored and davelandry committed May 30, 2019
1 parent f46db6b commit 6a4d976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cms/src/utils/urlSwap.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const env = {

module.exports = function(url, params) {

const lookup = Object.assign(env, params);
const lookup = Object.assign({}, env, params);

(url.match(/<[^\&\=\/>]+>/g) || []).forEach(variable => {
let x = variable.slice(1, -1).split(".");
Expand Down

0 comments on commit 6a4d976

Please sign in to comment.