🐛 fix(ApiModal/index.tsx): add missing condition to check if getTweak array is empty before pushing a new tweak to the tweak ref
✨ feat(ApiModal/index.tsx): automatically build and push a new tweak to the tweak ref if getTweak array is empty
This commit is contained in:
parent
e0e2be6d27
commit
032e48ac7f
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue