File tree 2 files changed +8
-2
lines changed
gui/src/sak/meny/sett-paa-vent/settPaVentModal
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ interface PureOwnProps {
95
95
export interface FormState {
96
96
ventearsak : string ;
97
97
frist : string ;
98
- ventearsakVariant : string ;
98
+ ventearsakVariant : string | undefined ;
99
99
}
100
100
101
101
interface UtvidetKodeverkObject extends KodeverkObject {
@@ -327,7 +327,7 @@ const buildInitialValues = (
327
327
) : FormState => ( {
328
328
ventearsak : ventearsak ?? '' ,
329
329
frist : frist ? frist : hasManualPaVent === false ? '' : initFrist ( ) ,
330
- ventearsakVariant : ventearsakVariant ?? '' ,
330
+ ventearsakVariant : ventearsakVariant ?? undefined ,
331
331
} ) ;
332
332
333
333
export default SettPaVentModal ;
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ export const goToLos = () => {
13
13
const path = getPathToK9Los ( ) ;
14
14
if ( path ) {
15
15
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 ( ) ;
16
20
}
17
21
} ;
18
22
@@ -21,3 +25,5 @@ const getBackendUrl = () => (window.location.pathname.includes('/ung/web') ? 'un
21
25
export const goToSearch = ( ) => {
22
26
window . location . assign ( `/${ getBackendUrl ( ) } /web` ) ;
23
27
} ;
28
+
29
+ export const isDev = ( ) => window . location . hostname === 'localhost' ;
You can’t perform that action at this time.
0 commit comments