Explorar el Código

fix(Songs): requestSet could return null songs

Owen Diffey hace 2 años
padre
commit
5fca9c9562
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/logic/actions/songs.js

+ 1 - 1
backend/logic/actions/songs.js

@@ -1191,7 +1191,7 @@ export default {
 									else failed += 1;
 									if (res.message === "This song is already in the database.") alreadyInDatabase += 1;
 									if (res.song) songs[index] = res.song;
-									else songs[index] = null;
+									else failed += 1;
 								})
 								.catch(() => {
 									failed += 1;