mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 19:30:00 +01:00
Created a new object instead of passing by reference (#1379)
* Creating copy of object * Creating copy of object * Create new object Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com> Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
6ffba532c3
commit
12a78c5745
@@ -24,7 +24,7 @@ function mapHtmlTypes(inputInfo){
|
||||
htmlType = 'text';
|
||||
break;
|
||||
}
|
||||
var response = inputInfo;
|
||||
var response = Object.assign({}, inputInfo);
|
||||
response.type = htmlType;
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user