fix: calendar layout not being rendered (#2610)

This commit is contained in:
Aaryan Khandelwal 2023-11-02 17:08:48 +05:30 committed by GitHub
parent 56e4152756
commit c987c6f308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;