Skip to content

Commit

Permalink
Merge branch 'SO1S-483'
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Nov 21, 2022
2 parents 7eb24d4 + a8022e2 commit 8a72e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/tests/abn/create-update-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export const CreateUpdateABNTestBase: React.FC<ICreateUpdateBaseParams> = ({
const domainRef = useRef<HTMLInputElement>(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) {
Expand Down

0 comments on commit 8a72e5b

Please sign in to comment.