Browse Source

fix(Songs): requestSet could return null songs

Owen Diffey 2 years ago
parent
commit
5fca9c9562
1 changed files with 1 additions and 1 deletions
  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;