[WEB-5429] refactor: conditional hooks (#8114)
* fix: conditional hooks * chore: remove unwanted file
This commit is contained in:
parent
83679806fd
commit
f3031a44f7
6 changed files with 8 additions and 9 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue