From a82e175b880ab53bdc803db7f002cbe0c0ff2f28 Mon Sep 17 00:00:00 2001 From: Josh Gamache Date: Mon, 25 Nov 2024 15:35:51 -0700 Subject: [PATCH] fix: cannot add animal after deleting empty drugs --- .../complaints/outcomes/oucome-by-animal/create-outcome.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/containers/complaints/outcomes/oucome-by-animal/create-outcome.tsx b/frontend/src/app/components/containers/complaints/outcomes/oucome-by-animal/create-outcome.tsx index c96d9cac9..949a3514f 100644 --- a/frontend/src/app/components/containers/complaints/outcomes/oucome-by-animal/create-outcome.tsx +++ b/frontend/src/app/components/containers/complaints/outcomes/oucome-by-animal/create-outcome.tsx @@ -311,7 +311,7 @@ export const CreateAnimalOutcome: FC = ({ index, assignedOfficer: officer } }); - if (!authorizationRef.current.isValid()) { + if (authorizationRef.current && !authorizationRef.current.isValid()) { _isValid = false; }