fix: signin page type (#671)
This commit is contained in:
parent
353197f583
commit
12ad3892f8
5 changed files with 30 additions and 26 deletions
|
|
@ -108,7 +108,7 @@ const useIssuesView = () => {
|
|||
const statesList = getStatesList(states ?? {});
|
||||
const stateIds = statesList.map((state) => state.id);
|
||||
|
||||
const emptyStatesObject: { [key: string]: [] } = {};
|
||||
const emptyStatesObject: { [key: string]: [] } = useMemo(() => ({}), []);
|
||||
for (let i = 0; i < stateIds.length; i++) {
|
||||
emptyStatesObject[stateIds[i]] = [];
|
||||
}
|
||||
|
|
@ -125,7 +125,15 @@ const useIssuesView = () => {
|
|||
return issuesToGroup ? Object.assign(emptyStatesObject, issuesToGroup) : undefined;
|
||||
|
||||
return issuesToGroup;
|
||||
}, [projectIssues, cycleIssues, moduleIssues, groupByProperty, cycleId, moduleId]);
|
||||
}, [
|
||||
projectIssues,
|
||||
cycleIssues,
|
||||
moduleIssues,
|
||||
groupByProperty,
|
||||
cycleId,
|
||||
moduleId,
|
||||
emptyStatesObject,
|
||||
]);
|
||||
|
||||
const isEmpty =
|
||||
Object.values(groupedByIssues ?? {}).every((group) => group.length === 0) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue