From 77ac1549e2ab5ac68a1a7464ada9be7e2a2aad92 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sun, 21 Mar 2021 13:18:39 +0300
Subject: feat: pass search params across screens

---
 src/containers/Service/ServiceList.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/containers/Service/ServiceList.tsx')

diff --git a/src/containers/Service/ServiceList.tsx b/src/containers/Service/ServiceList.tsx
index a0536b5..f716b24 100644
--- a/src/containers/Service/ServiceList.tsx
+++ b/src/containers/Service/ServiceList.tsx
@@ -13,7 +13,7 @@ const ServiceList: React.FC = () => {
 
   const actions = service.actions || [{
     name: 'Добавить',
-    route: `/${service.route}/add`,
+    route: `/${service.route}/add${location.search}`,
   }];
 
   const handleRowClick = (index: number) => {
-- 
cgit v1.2.3

