Skip to content

Commit

Permalink
Add hack to ensure re-rendring of designview after converting a newly…
Browse files Browse the repository at this point in the history
… added layout to PDF
  • Loading branch information
standeren committed Oct 2, 2024
1 parent 846314b commit 80c4e59
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export const DesignView = (): ReactNode => {
app,
selectedFormLayoutSetName,
);
// Referring to useFormLayoutSettingsQuery twice is a hack to ensure designView is re-rendered after converting
// a newly added layout to a PDF. See issue: https://github.com/Altinn/altinn-studio/issues/13679
useFormLayoutSettingsQuery(org, app, selectedFormLayoutSetName);
const { data: formLayoutSettings } = useFormLayoutSettingsQuery(
org,
app,
Expand Down

0 comments on commit 80c4e59

Please sign in to comment.