Skip to content

Commit

Permalink
Fix sur les valeurs null issues du fullConfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lowzonenose committed Oct 21, 2024
1 parent 2b67562 commit 1eb5da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/searchInArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export function useSearchInArray(array, search, properties) {
return array.filter((obj) => {
if (properties.map(prop => {
if (obj.hasOwnProperty(prop) &&
if (obj.hasOwnProperty(prop) && obj[prop] &&
obj[prop].toLowerCase().includes(search.toLowerCase()))
return true;
}).includes(true)) {
Expand Down

0 comments on commit 1eb5da7

Please sign in to comment.