flyzto il y a 5 mois
Parent
commit
af02a605a2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -412,7 +412,7 @@ const fetchGamesRelation = async (mk='') => {
 
 const getGamesRelation = ({ mk, listEvents } = {}) => {
   const relations = Object.values(GAMES.Relations).filter(item => {
-    if (typeof(mk) == 'undefined') {
+    if (typeof(mk) === 'undefined' || mk === '') {
       return true;
     }
     return item.mk == mk;