Skip to content

Commit

Permalink
Merge pull request #297 from VirtusLab-Open-Source/chore/version-2-2-3
Browse files Browse the repository at this point in the history
Chore/version 2 2 3
  • Loading branch information
cyp3rius authored Dec 30, 2022
2 parents 692e7d9 + 13ca49c commit f0b3121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion admin/src/pages/View/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const View = () => {
const [searchValue, setSearchValue] = useState('');
const [structureChanged, setStructureChanged] = useState(false);
const isSearchEmpty = isEmpty(searchValue);
const normalisedSearchValue = (searchValue || '').toLowerCase();

const structureHasErrors = !validateNavigationStructure((changedActiveNavigation || {}).items);

Expand Down Expand Up @@ -149,7 +150,7 @@ const View = () => {
else
return [...subItems, ...acc];
}, []);
const filteredList = !isSearchEmpty ? filteredListFactory(changedActiveNavigation.items, (item) => item?.title.includes(searchValue)) : [];
const filteredList = !isSearchEmpty ? filteredListFactory(changedActiveNavigation.items, (item) => (item?.title || '').toLowerCase().includes(normalisedSearchValue)) : [];

const changeCollapseItemDeep = (item, isCollapsed) => {
if (item.collapsed !== isCollapsed) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@sindresorhus/slugify": "1.1.0",
"@strapi/utils": "^4.3.8",
"@strapi/utils": "^4.5.4",
"lodash": "^4.17.11",
"pluralize": "^8.0.0",
"react": "^16.9.0",
Expand Down Expand Up @@ -80,7 +80,7 @@
}
],
"engines": {
"node": ">=14.19.3 <=17.x.x",
"node": ">=14.19.1 <=18.x.x",
"npm": ">=7.x.x"
},
"nodemonConfig": {
Expand Down

0 comments on commit f0b3121

Please sign in to comment.