Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 831e086

Browse files
committedMar 20, 2025··
Retter bug i meny for å sette behandlinger på vent
1 parent 395a5f2 commit 831e086

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎packages/v2/gui/src/sak/meny/sett-paa-vent/settPaVentModal/SettPaVentModal.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ interface PureOwnProps {
9595
export interface FormState {
9696
ventearsak: string;
9797
frist: string;
98-
ventearsakVariant: string;
98+
ventearsakVariant: string | undefined;
9999
}
100100

101101
interface UtvidetKodeverkObject extends KodeverkObject {
@@ -327,7 +327,7 @@ const buildInitialValues = (
327327
): FormState => ({
328328
ventearsak: ventearsak ?? '',
329329
frist: frist ? frist : hasManualPaVent === false ? '' : initFrist(),
330-
ventearsakVariant: ventearsakVariant ?? '',
330+
ventearsakVariant: ventearsakVariant ?? undefined,
331331
});
332332

333333
export default SettPaVentModal;

‎packages/v2/lib/src/paths/paths.ts

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ export const goToLos = () => {
1313
const path = getPathToK9Los();
1414
if (path) {
1515
window.location.assign(path);
16+
} else if (isDev()) {
17+
// I Q1 og prod havner man i LOS. Ved lokal utvikling må vi refreshe vindu for å få riktig vising,
18+
// da enkelte skjermbilder ikke er lagt opp til å håndtere visning dersom man blir værende.
19+
window.location.reload();
1620
}
1721
};
1822

@@ -21,3 +25,5 @@ const getBackendUrl = () => (window.location.pathname.includes('/ung/web') ? 'un
2125
export const goToSearch = () => {
2226
window.location.assign(`/${getBackendUrl()}/web`);
2327
};
28+
29+
export const isDev = () => window.location.hostname === 'localhost';

0 commit comments

Comments
 (0)
Please sign in to comment.