Skip to content

Commit

Permalink
create a clone of the input data array at row 0 prior to swapping ele…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
digimo committed Mar 23, 2019
1 parent 53b0db6 commit c19a9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function MLLPServer(host, port, logger) {
//get message ID
var msg_id = data[0][10];

var header = [data[0]];
var header = [data[0].slice()];

//switch around sender/receiver names
header[0][3] = data[0][5];
Expand Down

0 comments on commit c19a9d8

Please sign in to comment.