Skip to content

Commit 00a16af

Browse files
committed
Prøv å fikse hentEnhetOnMount
1 parent df50fa0 commit 00a16af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/internarbeidsflate-decorator-v3/src/Decorator.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const Decorator: React.FC<PropsWithChildren<DecoratorProps>> = (props) => {
1515
...props,
1616
ignoreExternalFnr: props.fnrSyncMode === 'writeOnly',
1717
fetchActiveUserOnMount:
18-
props.fnrSyncMode === 'writeOnly' || props.fetchActiveUserOnMount,
18+
props.fnrSyncMode !== 'writeOnly' && props.fetchActiveUserOnMount,
1919

20-
ignoreExternalEnhet: props.fnrSyncMode === 'writeOnly',
20+
ignoreExternalEnhet: props.enhetSyncMode === 'writeOnly',
2121
fetchActiveEnhetOnMount:
22-
props.enhetSyncMode === 'writeOnly' || props.fetchActiveEnhetOnMount,
22+
props.enhetSyncMode !== 'writeOnly' && props.fetchActiveEnhetOnMount,
2323
});
2424

2525
const ref = useOnOutsideClick<HTMLElement>(() =>

0 commit comments

Comments
 (0)