Skip to content

Commit 703f63f

Browse files
committed
Make linter happy
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent 65c3178 commit 703f63f

File tree

1 file changed

+3
-5
lines changed
  • ocg-hypermedia-api/static/js/community/explore

1 file changed

+3
-5
lines changed

ocg-hypermedia-api/static/js/community/explore/filters.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ export const reset = (formId) => {
2929
const dateInputs = document.querySelectorAll(`#${formId} input[type=date]`);
3030
if (dateInputs.length > 0) {
3131
// Reset date inputs
32-
document
33-
.querySelectorAll(`#${formId} input[type=date]`)
34-
.forEach((el) => (el.value = ""));
32+
document.querySelectorAll(`#${formId} input[type=date]`).forEach((el) => (el.value = ""));
3533
}
3634

3735
// Reset text search input
@@ -64,7 +62,7 @@ export const resetDateFiltersOnCalendarViewMode = () => {
6462
input.value = "";
6563
}
6664
});
67-
}
65+
};
6866

6967
// Select "Any" option for the given filter name.
7068
export const selectAnyOption = (name, type, triggerChange) => {
@@ -169,7 +167,7 @@ export function getFirstAndLastDayOfMonth(date) {
169167
const firstDayMonth = `${currentDate.getFullYear()}-${month}-01`;
170168
const lastDayMonth = `${currentDate.getFullYear()}-${month}-${lastDay.getDate()}`;
171169

172-
return {first: firstDayMonth, last: lastDayMonth};
170+
return { first: firstDayMonth, last: lastDayMonth };
173171
}
174172

175173
// Update date input with motnhly range.

0 commit comments

Comments
 (0)