WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EnviDat
EnviDat-Frontend
Commits
58604eb5
Commit
58604eb5
authored
Mar 30, 2021
by
Dominik Haas
Browse files
code clean up
parent
c6a413ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/factories/chartFactory.js
View file @
58604eb5
...
...
@@ -155,24 +155,24 @@ function getConfigFiles(resources) {
}
function
getGcnetStationsConfigs
(
configs
,
testStationsConfigUrl
=
'
./testdata/stationsConfig.json
'
,
testStationParametersUrl
=
'
./testdata/stationParameters.json
'
)
{
let
stationsConfigUrl
=
configs
?.
gcnetStationsConfig
?.
url
||
null
;
let
stationParametersUrl
=
configs
?.
gcnetStationParameters
?.
url
||
null
;
if
(
!
configs
)
{
configs
=
{};
}
let
stationsConfigUrl
=
configs
.
gcnetStationsConfig
?.
url
||
null
;
let
stationParametersUrl
=
configs
.
gcnetStationParameters
?.
url
||
null
;
if
(
process
.
env
.
NODE_ENV
===
'
development
'
)
{
stationsConfigUrl
=
testStationsConfigUrl
;
stationParametersUrl
=
testStationParametersUrl
;
stationsConfigUrl
=
''
;
//
testStationsConfigUrl;
stationParametersUrl
=
''
;
//
testStationParametersUrl;
}
else
{
if
(
configs
?
.
gcnetStationsConfig
)
{
if
(
configs
.
gcnetStationsConfig
)
{
configs
.
gcnetStationsConfig
.
hideFromResourceList
=
true
;
}
if
(
configs
?
.
gcnetStationParameters
)
{
if
(
configs
.
gcnetStationParameters
)
{
configs
.
gcnetStationParameters
.
hideFromResourceList
=
true
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment