Skip to content

Commit

Permalink
fix: MANO-PX MANO-Q7 person is undefined (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro authored Sep 19, 2023
1 parent 9918d95 commit 0cc5097
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dashboard/src/scenes/person/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export default function View() {

const preparePersonForEncryption = usePreparePersonForEncryption();

if (!person) {
toast.error("Cette personne n'existe pas, ou vient d'être supprimée par un(e) autre utilisateur(rice) de votre organisation");
history.push('/person');
return null;
}

return (
<div>
<div className="tw-flex tw-w-full tw-justify-between">
Expand Down

0 comments on commit 0cc5097

Please sign in to comment.