From 5a1de2ff9c90ac2148f1ed694018be18020e3905 Mon Sep 17 00:00:00 2001 From: Ming Yu Wang <90855268+mwangggg@users.noreply.github.com> Date: Tue, 6 Feb 2024 15:55:03 -0500 Subject: [PATCH] fix(rules): remove id property from uploaded rule (#1211) --- src/app/Rules/RulesUploadModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/Rules/RulesUploadModal.tsx b/src/app/Rules/RulesUploadModal.tsx index 36f7d7698..4ad7963bb 100644 --- a/src/app/Rules/RulesUploadModal.tsx +++ b/src/app/Rules/RulesUploadModal.tsx @@ -35,6 +35,9 @@ export const parseRule = (file: File): Observable => { return from( file.text().then((content) => { const obj = JSON.parse(content); + if (obj.id) { + obj.remove('id'); + } if (isRule(obj)) { return obj; } else {