From b3b88707ccef549fae2fdfe894fd77322d88dd58 Mon Sep 17 00:00:00 2001 From: mgtennant <100305096+mgtennant@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:45:48 -0700 Subject: [PATCH] clear data on dtid search --- frontend/src/app/content/pages/LandingPage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/content/pages/LandingPage.tsx b/frontend/src/app/content/pages/LandingPage.tsx index 3c59c08d..a981e8e9 100644 --- a/frontend/src/app/content/pages/LandingPage.tsx +++ b/frontend/src/app/content/pages/LandingPage.tsx @@ -229,6 +229,8 @@ const LandingPage: FC = () => { const fetchDataHandler = async () => { setError(null); setShowError(false); + setData(null); + setSelectedDocTypeId(null); if (dtidInput) { fetchData(dtidInput); } else {