Browse Source

fix(ManageStation/Playlists): search results with no results would throw an error in the console and not notify the user

Kristian Vos 3 years ago
parent
commit
a3e623b5d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/src/components/modals/ManageStation/Tabs/Playlists.vue

+ 1 - 1
frontend/src/components/modals/ManageStation/Tabs/Playlists.vue

@@ -885,8 +885,8 @@ export default {
 			this.search.searchedQuery = this.search.query;
 			this.socket.dispatch(action, query, page, res => {
 				const { data } = res;
-				const { count, pageSize, playlists } = data;
 				if (res.status === "success") {
+					const { count, pageSize, playlists } = data;
 					this.search.results = [
 						...this.search.results,
 						...playlists