Skip to content

Commit

Permalink
BUGFIX/HCMPRE-1209 changes in the project type code (#2116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov authored Jan 7, 2025
1 parent 397f356 commit b368b9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const UploadData = ({ formData, onSelect, ...props }) => {
var required = [];
var columns = [];
for (const propType of ["enumProperties", "numberProperties", "stringProperties"]) {
if (convertData?.properties[propType] && Array.isArray(convertData?.properties[propType]) && convertData?.properties[propType]?.length > 0) {
if (convertData?.properties?.[propType] && Array.isArray(convertData?.properties?.[propType]) && convertData?.properties?.[propType]?.length > 0) {
for (const property of convertData?.properties[propType]) {
properties[property?.name] = {
...property,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const useProductList = (tenantId,projectType) => {
config: {
enabled: true,
select: (data) => {
if (projectType === "CO-DEL") {
if (projectType === "Co-delivery") {
return data?.ProductVariant;
}
const filteredData = data?.ProductVariant?.filter(item =>
Expand Down

0 comments on commit b368b9c

Please sign in to comment.