Skip to content

Commit

Permalink
fix: Prevent access to Responses on unsaved form (#4986)
Browse files Browse the repository at this point in the history
* Prevent access to Responses on unsaved form

* add check before checkKeyExists

---------

Co-authored-by: Tim Arney <timarney@users.noreply.github.com>
  • Loading branch information
dsamojlenko and timarney authored Jan 16, 2025
1 parent 1026406 commit 3b72583
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default async function Page(props: {
);
}

const isApiRetrieval = !!(await checkKeyExists(id));
const isApiRetrieval = id !== "0000" && !!(await checkKeyExists(id));

const statusFilter = validateStatusFilterOrRedirect(
statusFilterParams,
Expand Down

0 comments on commit 3b72583

Please sign in to comment.