|
|
@ -58,14 +58,12 @@ export default defineComponent({ |
|
|
|
} |
|
|
|
try { |
|
|
|
let [status, response] = await this.$store.dispatch(Action.SearchMovies, this.searchValue); |
|
|
|
console.log(status, response); |
|
|
|
this.movies = response.result.results; |
|
|
|
this.page = response.result.page; |
|
|
|
this.totalPages = response.result.totalPages; |
|
|
|
this.totalResults = response.result.totalResults; |
|
|
|
console.log("Got results", this.totalResults); |
|
|
|
} catch(e) { |
|
|
|
console.log("Error fetching movies:", e); |
|
|
|
console.error("Error fetching movies:", e); |
|
|
|
} |
|
|
|
this.isSubmitting = false; |
|
|
|
} |
|
|
|