Skip to content

Commit

Permalink
FEATURE/HCMPRE-1209 : Added co-del project type (#2088)
Browse files Browse the repository at this point in the history
FEATURE/HCMPRE-1209 : Added co-del project type

Co-authored-by: Jagankumar <[email protected]>
  • Loading branch information
Bhavya-egov and jagankumar-egov authored Dec 30, 2024
1 parent 3f15a96 commit ec64a4d
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 727 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const useProductList = (tenantId,projectType) => {
config: {
enabled: true,
select: (data) => {

if (projectType === "CO-DEL") {
return data?.ProductVariant;
}
const filteredData = data?.ProductVariant?.filter(item =>
item.additionalFields?.fields?.some(field => field.key === "projectType" && field.value === projectType)
);
Expand Down
Loading

0 comments on commit ec64a4d

Please sign in to comment.