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
Nicholas J Anderson
whats-open-web
Commits
32acc6e6
Commit
32acc6e6
authored
Feb 11, 2018
by
Andrew Hrdy
Browse files
Fixed error with sort by location friendly name. Closes #36
parent
166fa885
Changes
2
Show whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
32acc6e6
# Changelog
## [2.1.1] - 2018-02-11
### Changed
-
Updated service worker
### Fixed
-
Fixed searching by location friendly name
## [2.1.0] - 2018-02-08
### Added
...
...
@@ -12,7 +22,7 @@
-
Facility cards now sorted by open / closed
-
Facility card shadowing
-
Search now includes friendly name
-
Search now includes
location
friendly name
### Fixed
...
...
@@ -32,3 +42,4 @@
[
2.0.1
]:
https://git.gmu.edu/srct/whats-open-web/compare/v2.0...v2.0.1
[
2.1.0
]:
https://git.gmu.edu/srct/whats-open-web/compare/v2.0.1...v2.1-Midnight-Cherry
[
2.1.1
]:
https://git.gmu.edu/srct/whats-open-web/compare/v2.1-Midnight-Cherry...v2.1.1
\ No newline at end of file
src/components/CardContainer.js
View file @
32acc6e6
...
...
@@ -26,7 +26,7 @@ const CardContainer = ({searchTerm, campusRegion, facilities}) => {
const
hasTag
=
index
!==
-
1
;
return
facilityName
.
includes
(
lSearchTerm
)
||
facilityLocation
.
includes
(
lSearchTerm
)
||
facilityCategory
.
includes
(
lSearchTerm
)
||
hasTag
||
f
acilityLocation
.
includes
(
friendlyName
);
facilityCategory
.
includes
(
lSearchTerm
)
||
hasTag
||
f
riendlyName
.
includes
(
lSearchTerm
);
};
return
(
...
...
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