From 032e48ac7fab9f68308bb483ff880127c17b27fb Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 14 Jul 2023 11:46:48 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ApiModal/index.tsx):=20add?= =?UTF-8?q?=20missing=20condition=20to=20check=20if=20getTweak=20array=20i?= =?UTF-8?q?s=20empty=20before=20pushing=20a=20new=20tweak=20to=20the=20twe?= =?UTF-8?q?ak=20ref=20=E2=9C=A8=20feat(ApiModal/index.tsx):=20automaticall?= =?UTF-8?q?y=20build=20and=20push=20a=20new=20tweak=20to=20the=20tweak=20r?= =?UTF-8?q?ef=20if=20getTweak=20array=20is=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/modals/ApiModal/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/src/modals/ApiModal/index.tsx b/src/frontend/src/modals/ApiModal/index.tsx index 52b0b03f6..a86239baa 100644 --- a/src/frontend/src/modals/ApiModal/index.tsx +++ b/src/frontend/src/modals/ApiModal/index.tsx @@ -109,6 +109,12 @@ const ApiModal = forwardRef( useEffect(() => { filterNodes(); + + if(getTweak.length == 0){ + const t = buildTweaks(flow); + tweak?.current?.push(t); + } + }, []); if (Object.keys(tweaksCode).length > 0) {