Skip to content

Commit

Permalink
Forhindrer evig spinner (#5101)
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardastark authored Oct 6, 2023
1 parent 1c3ec2e commit 909a82d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ const FritekstRedigering = ({
overstyrtMottaker,
setForhaandsvisningKlart,
}: ownProps & WrappedComponentProps) => {
useEffect(() => {}, []);
useEffect(() => {
setForhaandsvisningKlart(false);
}, []);
const redigerbarDokumentmal: VedtaksbrevMal = tilgjengeligeVedtaksbrev.maler.find(
vb => vb.dokumentMalType === dokumentMalType.MANUELL,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/prosess-vedtak/src/components/brev/BrevPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const BrevPanel: React.FC<BrevPanelProps> = props => {
lagreDokumentdata,
getPreviewAutomatiskBrevCallback,
} = props;
const [forhaandsvisningKlart, setForhaandsvisningKlart] = useState(false);
const [forhaandsvisningKlart, setForhaandsvisningKlart] = useState(true);
const [, meta] = useField({ name: 'overstyrtMottaker' });

const automatiskBrevCallback = getPreviewAutomatiskBrevCallback(formikProps.values)({ aapneINyttVindu: true });
Expand Down

0 comments on commit 909a82d

Please sign in to comment.