Parcourir la source

fix(Songs): requestSet could return null songs

Owen Diffey il y a 2 ans
Parent
commit
5fca9c9562
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;