fix: duplicate ID (#2501)

diff --git a/web/src/pages/Route/Create.tsx b/web/src/pages/Route/Create.tsx
index fe7458c..77c74a1 100644
--- a/web/src/pages/Route/Create.tsx
+++ b/web/src/pages/Route/Create.tsx
@@ -234,11 +234,17 @@
         step3Data,
         advancedMatchingRules,
       } as RouteModule.RequestData;
-      if (props.route.path.indexOf('edit') !== -1) {
+
+      const { path } = props.route
+
+      if (path.indexOf('edit') !== -1) {
         update((props as any).match.params.rid, routeData).then(() => {
           setStep(5);
         });
       } else {
+        if (path.indexOf('duplicate') !== -1) {
+          delete routeData.form1Data.id
+        }
         create(routeData).then(() => {
           setStep(5);
         });
diff --git a/web/src/pages/Route/typing.d.ts b/web/src/pages/Route/typing.d.ts
index 42dcefe..64c4bb7 100644
--- a/web/src/pages/Route/typing.d.ts
+++ b/web/src/pages/Route/typing.d.ts
@@ -115,6 +115,7 @@
   };
 
   type Form1Data = {
+    id?: string;
     name: string;
     desc: string;
     custom_version_label: string;