Skip to content

Commit 8adcbc7

Browse files
committed
chore: fix deprecated access of SearchFilter global
1 parent 3e904dc commit 8adcbc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/module/apps/quench-results.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class QuenchResults extends HandlebarsApplicationMixin(ApplicationV2)<Que
4747
/**
4848
* The application's search filter, instantiated once when the app is created.
4949
*/
50-
// @ts-expect-error SearchFilter global access is deprecated, not in types yet though
50+
// @ts-expect-error SearchFilter types have not been updated yet
5151
#searchFilter = new foundry.applications.ux.SearchFilter({
5252
inputSelector: "input#quench-filter",
5353
contentSelector: "#quench-batches-list",
@@ -261,7 +261,9 @@ export class QuenchResults extends HandlebarsApplicationMixin(ApplicationV2)<Que
261261
const checkElement = (element: HTMLElement, parentHasQuery = false): boolean => {
262262
// Whether the element itself matches the query
263263
const hasQuery = rgx.test(
264-
SearchFilter.cleanQuery(element.querySelector(".runnable-title")?.textContent || ""),
264+
foundry.applications.ux.SearchFilter.cleanQuery(
265+
element.querySelector(".runnable-title")?.textContent || "",
266+
),
265267
);
266268
const runnables = [...(element.querySelector(".runnable-list")?.children ?? [])];
267269
// Whether any of the element's children match the query

0 commit comments

Comments
 (0)