From 6b41faf7c28e0ac2e6cfb09c3e7cc02aa4fb1ce8 Mon Sep 17 00:00:00 2001 From: Gael Leblan Date: Sun, 13 Oct 2024 00:21:51 +0200 Subject: [PATCH] [frontend/backend] Chaining injects conditionally --- openbas-front/src/admin/components/common/injects/Injects.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/openbas-front/src/admin/components/common/injects/Injects.tsx b/openbas-front/src/admin/components/common/injects/Injects.tsx index d357e38ce0..88444e7ca8 100644 --- a/openbas-front/src/admin/components/common/injects/Injects.tsx +++ b/openbas-front/src/admin/components/common/injects/Injects.tsx @@ -215,6 +215,7 @@ const Injects: FunctionComponent = ({ setInjects([created as InjectOutputType, ...injects]); } }; + const onUpdate = (result: { result: string, entities: { injects: Record } }) => { if (result.entities) { const updated = result.entities.injects[result.result];