From d692498e4ebc72301957519498165ad5f17e5c93 Mon Sep 17 00:00:00 2001 From: Sam Lavigne Date: Fri, 25 Aug 2023 16:14:29 -0400 Subject: [PATCH] failed attempt at integrating generators --- src/FilterPicker.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterPicker.svelte b/src/FilterPicker.svelte index f73cff5..8200a80 100644 --- a/src/FilterPicker.svelte +++ b/src/FilterPicker.svelte @@ -12,8 +12,10 @@ function selectFilters(sel) { if (sel == "video") { - return FILTERS.filter((f) => f.type[0] === "V" || f.type === "N->V"); + // return FILTERS.filter((f) => f.type.startsWith("V") || f.type.endsWith("V")); + return FILTERS.filter((f) => f.type[0] === "V" || (f.type[0] === "|") || f.type === "N->V"); } else if (sel == "audio") { + // return FILTERS.filter((f) => f.type.startsWith("A") || f.type.endsWith("A")); return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A"); } else { return [...FILTERS];