Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
8ff4459a
Commit
8ff4459a
authored
Jan 01, 2018
by
Andrew Hrdy
Browse files
Fix error caused from linting change.
parent
2806cdb7
Pipeline
#1929
passed with stage
in 1 minute and 41 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/actions/api.js
View file @
8ff4459a
...
...
@@ -27,8 +27,9 @@ export const setFacilities = (facilities) => {
try
{
localStorage
.
setItem
(
'
facilities
'
,
facilities
);
}
catch
(
e
)
{
console
.
error
(
'
Set localstorage fail for facilities.
'
);
//Empty
}
return
{
type
:
SET_FACILITIES
,
facilities
:
JSON
.
parse
(
facilities
)
...
...
src/components/WeekHours.js
View file @
8ff4459a
...
...
@@ -14,6 +14,7 @@ const WeekHours = ({facility}) => {
];
const
output
=
[];
try
{
let
index
=
0
;
for
(
let
dayOfWeek
=
0
;
dayOfWeek
<
7
;
dayOfWeek
++
)
{
const
todaysHours
=
facilityUtils
.
getHoursByDay
(
facility
,
dayOfWeek
);
...
...
@@ -27,6 +28,9 @@ const WeekHours = ({facility}) => {
index
++
;
}
}
}
catch
(
e
)
{
//Empty
}
return
(
<
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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