fixed hide schedule bug

This commit is contained in:
Edward Tirado Jr 2025-05-29 13:55:55 -05:00
parent ebd6af58ba
commit 1382699dda
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ export default defineNuxtConfig({
runtimeConfig: { runtimeConfig: {
public: { public: {
apiURL: process.env.API_URL || "http://localhost:8000/api", apiURL: process.env.API_URL || "http://localhost:8000/v1",
}, },
}, },

View file

@ -120,9 +120,9 @@ const getList = async function (list_id: number) {
}; };
const hideScheduled = function () { const hideScheduled = function () {
if (hide_scheduled && movies.value.length > 0) { if (hide_scheduled.value && movies.value.length > 0) {
let filtered = movies.value.filter((movie) => { let filtered = movies.value.filter((movie) => {
return movie.last_watched === null; return !movie.has_been_scheduled;
}); });
if (typeof filtered != "undefined") { if (typeof filtered != "undefined") {
filtered_movies.value = filtered; filtered_movies.value = filtered;

View file

@ -10,5 +10,5 @@ export type Movie = {
actors: string; actors: string;
plot: string; plot: string;
poster: string; poster: string;
last_watched: string; has_been_scheduled: boolean;
}; };