mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: calendar layout not being rendered (#2610)
This commit is contained in:
parent
56e4152756
commit
c987c6f308
@ -149,7 +149,14 @@ export class IssueFilterStore implements IIssueFilterStore {
|
|||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
this.userFilters = memberResponse?.view_props?.filters;
|
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;
|
this.userDisplayProperties = issueProperties?.properties || this.defaultDisplayProperties;
|
||||||
// default props from api
|
// default props from api
|
||||||
this.defaultFilters = memberResponse.default_props.filters;
|
this.defaultFilters = memberResponse.default_props.filters;
|
||||||
|
Loading…
Reference in New Issue
Block a user