[WEB-5429] refactor: conditional hooks (#8114)

* fix: conditional hooks

* chore: remove unwanted file
This commit is contained in:
Aaryan Khandelwal 2025-11-20 16:22:46 +05:30 committed by GitHub
parent 83679806fd
commit f3031a44f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 9 deletions

View file

@ -6,8 +6,8 @@ import { useWorkItemFilters } from "./use-work-item-filters";
export const useWorkItemFilterInstance = (
entityType: EIssuesStoreType,
entityId: string
entityId: string | undefined
): IWorkItemFilterInstance | undefined => {
const { getFilter } = useWorkItemFilters();
return getFilter(entityType, entityId);
return entityId ? getFilter(entityType, entityId) : undefined;
};