File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import ZoomParamConfig from '@/router/storeSync/ZoomParamConfig.class.js'
11
11
import { FeatureInfoPositions } from '@/store/modules/ui.store'
12
12
13
13
import CompareSliderParamConfig from './CompareSliderParamConfig.class'
14
+
14
15
/**
15
16
* Configuration for all URL parameters of this app that need syncing with the store (and
16
17
* vice-versa)
@@ -33,7 +34,9 @@ const storeSyncConfig = [
33
34
( store ) => store . state . position . projection . epsgNumber ,
34
35
false ,
35
36
Number ,
36
- DEFAULT_PROJECTION . epsgNumber ,
37
+ // Unit tests somehow come to this line without having set DEFAULT_PROJECTION correcty.
38
+ // So as defensive measure for this, we set a "just in case" default hard-coded value.
39
+ DEFAULT_PROJECTION ?. epsgNumber ?? 2056 ,
37
40
'projection'
38
41
) ,
39
42
// Position must be processed after the projection param,
You can’t perform that action at this time.
0 commit comments