Skip to content

Commit

Permalink
fixed migration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0PandaDEV committed May 22, 2024
1 parent 7834c04 commit a3af007
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 264 deletions.
5 changes: 0 additions & 5 deletions pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ const { $music, $settings } = useNuxtApp();
const searchTerm = ref("");
const searchResults = ref<MusicSearchResponseItem[]>([]);
const isLoading = ref(false);
let searchTimeout: ReturnType<typeof setTimeout>;
async function searchSongs() {
isLoading.value = true;
if (searchTerm.value === "") {
searchResults.value = [];
isLoading.value = false;
return;
}
Expand All @@ -61,8 +58,6 @@ async function searchSongs() {
console.error("Failed to fetch songs:", error, apiURL, searchTerm.value);
searchResults.value = [];
}
isLoading.value = false;
}
function handleInput() {
Expand Down
Loading

0 comments on commit a3af007

Please sign in to comment.