This is an automated email from the ASF dual-hosted git repository.
zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 27b190ae40 Copy by reference instead of value (#7318)
27b190ae40 is described below
commit 27b190ae40830c773b0a7032b169b5e9eaa34f73
Author: Steve Hamrick <[email protected]>
AuthorDate: Thu Jan 26 16:27:30 2023 -0700
Copy by reference instead of value (#7318)
---
traffic_portal/app/src/common/service/utils/TenantUtils.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/traffic_portal/app/src/common/service/utils/TenantUtils.js
b/traffic_portal/app/src/common/service/utils/TenantUtils.js
index b997fad711..ddba140f6f 100644
--- a/traffic_portal/app/src/common/service/utils/TenantUtils.js
+++ b/traffic_portal/app/src/common/service/utils/TenantUtils.js
@@ -118,7 +118,8 @@ class TenantUtils {
const map = {};
for (let i = 0; i < tenantsArr.length; ++i) {
- const obj = {...tenantsArr[i], children: []};
+ const obj = tenantsArr[i];
+ obj.children = [];
map[obj.id] = obj;