Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Aug 8, 2024
1 parent 72d388d commit af120c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep-ui/app/alerts/alert-associate-incident-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const AlertAssociateIncidentModal = ({
const { data: incidents, isLoading, mutate } = useIncidents(true, 100);
usePollIncidents(mutate);

const [selectedIncident, setSelectedIncident] = useState<string | null>(null);
const [selectedIncident, setSelectedIncident] = useState<string | undefined>();
// get the token
const { data: session } = useSession();
const router = useRouter();
Expand Down Expand Up @@ -79,7 +79,7 @@ const AlertAssociateIncidentModal = ({
useEffect(() => {
if (!isOpen) {
hideCreateIncidentForm();
setSelectedIncident(null);
setSelectedIncident(undefined);
}
}, [hideCreateIncidentForm, isOpen]);

Expand Down

0 comments on commit af120c8

Please sign in to comment.