Skip to content

Commit 4159d12

Browse files
[WEB-2889] fix: global views sorting when hyper model is enabled. (#6280)
1 parent 2f2f8dc commit 4159d12

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

web/core/components/workspace/views/form.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import { useEffect } from "react";
44
import { observer } from "mobx-react";
55
import { Controller, useForm } from "react-hook-form";
6+
// constant
7+
import { EIssueLayoutTypes } from "@plane/constants";
68
// types
79
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, IWorkspaceView } from "@plane/types";
810
// ui
@@ -30,7 +32,9 @@ const defaultValues: Partial<IWorkspaceView> = {
3032
description: "",
3133
access: EViewAccess.PUBLIC,
3234
display_properties: getComputedDisplayProperties(),
33-
display_filters: getComputedDisplayFilters(),
35+
display_filters: getComputedDisplayFilters({
36+
layout: EIssueLayoutTypes.SPREADSHEET,
37+
}),
3438
};
3539

3640
export const WorkspaceViewForm: React.FC<Props> = observer((props) => {

web/core/store/issue/helpers/base-issues.store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
297297
// Temporary code to fix no load order by
298298
if (
299299
this.rootIssueStore.rootStore.user.localDBEnabled &&
300+
this.rootIssueStore.rootStore.router.projectId &&
300301
layout !== EIssueLayoutTypes.SPREADSHEET &&
301302
orderBy &&
302303
Object.keys(SPECIAL_ORDER_BY).includes(orderBy)

0 commit comments

Comments
 (0)