Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add View NCE Form #1014

Merged
merged 11 commits into from
Apr 26, 2024
12 changes: 11 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,17 @@ export default function App() {
<SecureRoute
path="/ReportNonConformingEvent"
exact
component={() => <NonConformIndex />}
component={() => (
<NonConformIndex form="ReportNonConformingEvent" />
)}
role="Reception"
/>
<SecureRoute
path="/ViewNonConformingEvent"
exact
component={() => (
<NonConformIndex form="ViewNonConformingEvent" />
)}
role="Reception"
/>
<SecureRoute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const ReportNonConformingEvent = () => {
getFromOpenElisServer(
`/rest/nonconformevents?${reportFormValues.type}=${reportFormValues.value}`,
(data) => {
setReportFormValues(initialReportFormValues)
if (data) {
setLData(data);
} else {
Expand Down
Loading
Loading