diff --git a/demo/demo.ts b/demo/demo.ts index bbc5cb8..a11f3bd 100644 --- a/demo/demo.ts +++ b/demo/demo.ts @@ -93,7 +93,11 @@ setupForm("#save-token", async () => { }); setupForm("#productos", () => getProductos(HOST, token(), {})); setupForm("#publicaciones", () => getPublications(HOST, token(), {})); -setupForm("#price", () => getPrices(HOST, token(), {})); +setupForm("#price", (event) => + getPrices(HOST, token(), { + filter: (event.target! as any).filter.value, + }) +); setupForm("#price-by-customer", (event) => getPricesByCustomer(HOST, token(), { filter: (event.target! as any).filter.value, diff --git a/demo/index.html b/demo/index.html index a427c55..111431f 100644 --- a/demo/index.html +++ b/demo/index.html @@ -56,6 +56,7 @@