Skip to content

Commit

Permalink
[WEB-2924] improvement: enhance spreadsheet modularity for improved g…
Browse files Browse the repository at this point in the history
…lobal compatibility (#6374)
  • Loading branch information
prateekshourya29 authored Jan 10, 2025
1 parent 7430ccf commit 58ac1dc
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
import { FC, useCallback, useEffect } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
// plane constants
// plane imports
import { ALL_ISSUES, EIssueLayoutTypes, EIssuesStoreType, EIssueFilterType } from "@plane/constants";
import { IIssueDisplayFilterOptions } from "@plane/types";
// hooks
import { useIssues, useUserPermissions } from "@/hooks/store";
import { useIssueStoreType } from "@/hooks/use-issue-layout-store";
import { useIssuesActions } from "@/hooks/use-issues-actions";
import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions";
// views
// stores
// components
// local imports
import { IssueLayoutHOC } from "../issue-layout-HOC";
// types
// constants
import { IQuickActionProps, TRenderQuickActions } from "../list/list-view-types";
import { SpreadsheetView } from "./spreadsheet-view";

Expand Down Expand Up @@ -81,9 +77,7 @@ export const BaseSpreadsheetRoot = observer((props: IBaseSpreadsheetRoot) => {

const handleDisplayFiltersUpdate = useCallback(
(updatedDisplayFilter: Partial<IIssueDisplayFilterOptions>) => {
if (!projectId) return;

updateFilters(projectId.toString(), EIssueFilterType.DISPLAY_FILTERS, {
updateFilters(projectId?.toString() ?? "", EIssueFilterType.DISPLAY_FILTERS, {
...updatedDisplayFilter,
});
},
Expand Down

0 comments on commit 58ac1dc

Please sign in to comment.