fix(instances): type multiSelectFilter as FilterFn<any> for column reuse
Some checks failed
Deploy to Production / Trigger production update (push) Failing after 10s

Allows the shared column filter to be attached to typed VMInstance columns
without a FilterFn<unknown> assignability error.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 15:28:01 +05:00
parent 5c6bb013c9
commit a4b99c2383

View File

@@ -21,7 +21,8 @@ declare module '@tanstack/react-table' {
* of the selected values. Built-in arrIncludesSome expects array cells, so we
* provide our own. Empty selection passes everything.
*/
export const multiSelectFilter: FilterFn<unknown> = (row, columnId, value: string[]) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const multiSelectFilter: FilterFn<any> = (row, columnId, value: string[]) => {
if (!value?.length) return true;
return value.includes(String(row.getValue(columnId)));
};