From c39364a35b9620f8d96442649ca6a62267aa1473 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 15 Nov 2023 15:45:52 -0500 Subject: [PATCH] fix(striker-ui): handle unchecked/empty file location --- striker-ui/components/Files/FileInputGroup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/Files/FileInputGroup.tsx b/striker-ui/components/Files/FileInputGroup.tsx index 3d7ed827..10c3d124 100644 --- a/striker-ui/components/Files/FileInputGroup.tsx +++ b/striker-ui/components/Files/FileInputGroup.tsx @@ -82,7 +82,7 @@ const FileInputGroup: FC = (props) => { return { id: activeChain, name: activeChain, - checked: formik.values[fuuid].locations?.[type][uuid].active, + checked: formik.values[fuuid].locations?.[type]?.[uuid]?.active, onBlur: handleBlur, onChange: handleChange, };