Explorar o código

fix(Songs): requestSet could return null songs

Owen Diffey %!s(int64=2) %!d(string=hai) anos
pai
achega
5fca9c9562
Modificáronse 1 ficheiros con 1 adicións e 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;