[WEB-1255] chore: necessary changes for advanced views (#4955)

* make necessary changes for advanced views

* fix update view access methods
This commit is contained in:
rahulramesha 2024-06-27 18:42:07 +05:30 committed by GitHub
parent dbd7756163
commit 1f9f821543
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 65 additions and 8 deletions

View file

@ -9,9 +9,10 @@ import { Breadcrumbs, PhotoFilterIcon, Button } from "@plane/ui";
// components
import { BreadcrumbLink, Logo } from "@/components/common";
import { ViewListHeader } from "@/components/views";
import { ViewAppliedFiltersList } from "@/components/views/filters/applied-filters";
import { ViewAppliedFiltersList } from "@/components/views/applied-filters";
// constants
import { EUserProjectRoles } from "@/constants/project";
import { EViewAccess } from "@/constants/views";
// helpers
import { calculateTotalFilters } from "@/helpers/filter.helper";
// hooks
@ -29,7 +30,7 @@ export const ProjectViewsHeader = observer(() => {
const { filters, updateFilters, clearAllFilters } = useProjectView();
const handleRemoveFilter = useCallback(
(key: keyof TViewFilterProps, value: string | null) => {
(key: keyof TViewFilterProps, value: string | EViewAccess | null) => {
let newValues = filters.filters?.[key];
if (key === "favorites") {