fix search to read from database

This commit is contained in:
geoffrey45
2022-06-16 09:36:42 +03:00
parent 88247e0553
commit 79a7161827
12 changed files with 67 additions and 64 deletions
+4 -4
View File
@@ -123,16 +123,16 @@ export default defineStore("search", () => {
.then(() => scrollOnLoad());
}
function updateLoadCounter(type: string, value: number) {
function updateLoadCounter(type: string) {
switch (type) {
case "tracks":
loadCounter.tracks += value;
loadCounter.tracks += 6;
break;
case "albums":
loadCounter.albums += value;
loadCounter.albums += 6;
break;
case "artists":
loadCounter.artists += value;
loadCounter.artists += 6;
break;
}
}