Skip to content
Snippets Groups Projects
Commit b70d7095 authored by Barnando Akbarto's avatar Barnando Akbarto
Browse files

Merge branch 'fix/MP-1482' into 'release/v0.39'

fix: [MP-1482] remove archive properties

See merge request mashplace/frontend/main-next!2331
parents 43b4ed42 b49d8271
Branches
Tags b0.39.2
No related merge requests found
......@@ -2,6 +2,7 @@ import React, { useMemo } from "react";
import { LoadingDots } from "@/components/ui";
import { PropertyPreview } from "@/features/public/components/PropertyPreview";
import { Property_Api_PropertyStatusEnum } from "@/graphql-schema-types.generated";
import { SystemError } from "@/ui/components";
import { Subtitle } from "../Subtitle";
......@@ -23,6 +24,11 @@ export const SimilarProperties = ({
() =>
(data?.property?.search?.properties ?? [])
.filter((property) => property.id !== propertyId && !property.deleted)
// TODO: this is quick fix to remove archive, it is required to fix on backend
.filter(
(property) =>
property.status !== Property_Api_PropertyStatusEnum.Archive
)
.slice(0, MAX_ITEMS_TO_DISPLAY),
[data?.property?.search?.properties, propertyId]
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment