From 0a30734deb0cec60834b445bb2dbcb829d2ec28f Mon Sep 17 00:00:00 2001
From: Tomasz Knapik <hi@tmkn.org>
Date: Wed, 30 Jan 2019 14:06:00 +0000
Subject: [PATCH] Use object spread operator instead of Object.assign

---
 opentech/static_src/src/app/src/redux/middleware/api.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opentech/static_src/src/app/src/redux/middleware/api.js b/opentech/static_src/src/app/src/redux/middleware/api.js
index 1bf009649..4eafcb054 100644
--- a/opentech/static_src/src/app/src/redux/middleware/api.js
+++ b/opentech/static_src/src/app/src/redux/middleware/api.js
@@ -47,7 +47,7 @@ export default store => next => action => {
     }
 
     const actionWith = data => {
-        const finalAction = Object.assign({}, action, data)
+        const finalAction = {...action, ...data}
         delete finalAction[CALL_API]
         return finalAction
     }
-- 
GitLab