From 0cc5097701060ce3b24d6ea6765493c563d1b437 Mon Sep 17 00:00:00 2001 From: Arnaud Ambroselli <31724752+arnaudambro@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:17:08 +0200 Subject: [PATCH] fix: MANO-PX MANO-Q7 person is undefined (#1662) --- dashboard/src/scenes/person/view.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dashboard/src/scenes/person/view.js b/dashboard/src/scenes/person/view.js index 8eb65ac18..145515fca 100644 --- a/dashboard/src/scenes/person/view.js +++ b/dashboard/src/scenes/person/view.js @@ -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 (