diff --git a/src/pages/tests/abn/create-update-base.tsx b/src/pages/tests/abn/create-update-base.tsx index 76a672a..00d66d2 100644 --- a/src/pages/tests/abn/create-update-base.tsx +++ b/src/pages/tests/abn/create-update-base.tsx @@ -42,7 +42,9 @@ export const CreateUpdateABNTestBase: React.FC = ({ const domainRef = useRef(null); const { id } = useParams(); - const abnTest = abnTests.find((test) => test.id === +id); + const abnTest = abnTests.find( + (test) => id !== undefined && test.id === +id + ); useEffect(() => { if (type === 'update' && abnTest) {