flyzto 5 luni în urmă
părinte
comite
af02a605a2
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;