Skip to content

Commit

Permalink
fix: calendar layout not being rendered (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Nov 2, 2023
1 parent 56e4152 commit c987c6f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/store/issue/issue_filters.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,14 @@ export class IssueFilterStore implements IIssueFilterStore {

runInAction(() => {
this.userFilters = memberResponse?.view_props?.filters;
this.userDisplayFilters = memberResponse?.view_props?.display_filters ?? {};
this.userDisplayFilters = {
...memberResponse?.view_props?.display_filters,
// add calendar display filters if not already present
calendar: {
show_weekends: memberResponse?.view_props?.display_filters?.calendar?.show_weekends || true,
layout: memberResponse?.view_props?.display_filters?.calendar?.layout || "month",
},
};
this.userDisplayProperties = issueProperties?.properties || this.defaultDisplayProperties;
// default props from api
this.defaultFilters = memberResponse.default_props.filters;
Expand Down

0 comments on commit c987c6f

Please sign in to comment.