Skip to content

Commit

Permalink
UPDATE: on close form to update state
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Jan 30, 2025
1 parent f5c5afa commit 095e62e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/frontend/src/components/tiltak/TiltakReadMoreList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ const TiltakListContent = (props: ITiltakListContentProps) => {
initialValues={tiltak}
pvkDokumentId={tiltak.pvkDokumentId}
submit={submit}
close={() => setIsEditMode(false)}
close={() => {
setIsEditMode(false)
setIsEditTiltakFormActive(false)
}}
formRef={formRef}
/>
)}
Expand Down

0 comments on commit 095e62e

Please sign in to comment.