chore: added sub_group_by in params and handled sub-group-by render error in display filter's

This commit is contained in:
gurusainath 2023-09-26 14:43:36 +05:30
parent 7c0c0da0f8
commit c48cd3ee6e
2 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export const FilterSubGroupBy = observer(() => {
{ISSUE_GROUP_BY_OPTIONS.map((subGroupBy) => { {ISSUE_GROUP_BY_OPTIONS.map((subGroupBy) => {
if ( if (
issueFilterStore.userDisplayFilters.group_by !== null && issueFilterStore.userDisplayFilters.group_by !== null &&
issueFilterStore.userDisplayFilters.sub_group_by === issueFilterStore.userDisplayFilters.group_by subGroupBy.key === issueFilterStore.userDisplayFilters.group_by
) )
return null; return null;

View File

@ -136,6 +136,7 @@ class IssueFilterStore implements IIssueFilterStore {
target_date: this.userFilters?.target_date || undefined, target_date: this.userFilters?.target_date || undefined,
group_by: this.userDisplayFilters?.group_by || "state", group_by: this.userDisplayFilters?.group_by || "state",
order_by: this.userDisplayFilters?.order_by || "-created_at", order_by: this.userDisplayFilters?.order_by || "-created_at",
sub_group_by: this.userDisplayFilters?.sub_group_by || undefined,
type: this.userDisplayFilters?.type || undefined, type: this.userDisplayFilters?.type || undefined,
sub_issue: this.userDisplayFilters?.sub_issue || true, sub_issue: this.userDisplayFilters?.sub_issue || true,
show_empty_groups: this.userDisplayFilters?.show_empty_groups || true, show_empty_groups: this.userDisplayFilters?.show_empty_groups || true,