[WEB-2889] fix: global views sorting when hyper model is enabled. (#6280)
This commit is contained in:
parent
2f2f8dc5f4
commit
4159d12959
2 changed files with 6 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
|||
import { useEffect } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
// constant
|
||||
import { EIssueLayoutTypes } from "@plane/constants";
|
||||
// types
|
||||
import { IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueFilterOptions, IWorkspaceView } from "@plane/types";
|
||||
// ui
|
||||
|
|
@ -30,7 +32,9 @@ const defaultValues: Partial<IWorkspaceView> = {
|
|||
description: "",
|
||||
access: EViewAccess.PUBLIC,
|
||||
display_properties: getComputedDisplayProperties(),
|
||||
display_filters: getComputedDisplayFilters(),
|
||||
display_filters: getComputedDisplayFilters({
|
||||
layout: EIssueLayoutTypes.SPREADSHEET,
|
||||
}),
|
||||
};
|
||||
|
||||
export const WorkspaceViewForm: React.FC<Props> = observer((props) => {
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
|
|||
// Temporary code to fix no load order by
|
||||
if (
|
||||
this.rootIssueStore.rootStore.user.localDBEnabled &&
|
||||
this.rootIssueStore.rootStore.router.projectId &&
|
||||
layout !== EIssueLayoutTypes.SPREADSHEET &&
|
||||
orderBy &&
|
||||
Object.keys(SPECIAL_ORDER_BY).includes(orderBy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue