+ Filter for {key}:{" "} +
+ {filters[key as keyof IIssueFilterOptions] === null || + (filters[key as keyof IIssueFilterOptions]?.length ?? 0) <= 0 ? ( +None
+ ) : ( + Array.isArray(filters[key as keyof IIssueFilterOptions]) && ( ++ {key === "state" + ? (filters[key as keyof IIssueFilterOptions] as any)?.map( + (stateId: any) => { + const state = states?.find((s) => s.id === stateId); + return ( +
+ {state?.name ?? "Loading..."}
+ {
+ setFilters({
+ ...filters,
+ [key]: (
+ filters[key as keyof IIssueFilterOptions] as any
+ )?.filter((s: any) => s !== stateId),
+ });
+ }}
+ >
+
+ {priority}
+ {
+ setFilters({
+ ...filters,
+ [key]: (
+ filters[key as keyof IIssueFilterOptions] as any
+ )?.filter((p: any) => p !== priority),
+ });
+ }}
+ >
+