Jelajahi Sumber

fix(Songs): requestSet could return null songs

Owen Diffey 2 tahun lalu
induk
melakukan
5fca9c9562
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;