Skip to content

Conversation

@sylwia-werner
Copy link
Collaborator

@sylwia-werner sylwia-werner commented Oct 23, 2025

Fix pt-3

MM2-1318

@sylwia-werner sylwia-werner requested a review from mikolvj October 23, 2025 07:07
@vercel
Copy link

vercel bot commented Oct 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mercurvendor-testing Ready Ready Preview Comment Nov 3, 2025 3:25pm
vendor-panel Ready Ready Preview Comment Nov 3, 2025 3:25pm
vendor-plugin-test Ready Ready Preview Comment Nov 3, 2025 3:25pm
vendor-sandbox Ready Ready Preview Comment Nov 3, 2025 3:25pm

Comment on lines 478 to 484
const limitedProducts = filter?.limit
? products.slice(0, filter.limit)
: products

return {
...data,
products: productsImagesFormatter(products?.slice(0, filter?.limit)) || [],
products: limitedProducts,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're going to remove FE filtering, soon this will be unused

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this on main branch

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this on main branch

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this on main branch

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

}
)

console.log(products,'products')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Comment on lines 81 to 83
const processedProducts = products?.slice(offset, offset + PAGE_SIZE) || []
const processedCount =
count < (products?.length || 0) ? count : products?.length || 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove this after Alan's pr is merged

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

? regionsCurrencyMap[regionId as string]
: currencyCodeOrRegionId

let existingId: string | undefined = undefined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls don't define anything as undefined

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

return
}

// Create a clean payload for the API
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove the comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

</RouteDrawer.Header>
{!isLoading && product && (
<ProductShippingProfileForm product={product} />
<ProductShippingProfileForm product={product as any} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as any

}

function productsImagesFormatter(
products: ExtendedAdminProduct[] | ExtendedAdminProduct | undefined
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about
products?: ExtendedAdminProduct[] | ExtendedAdminProduct

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected

@sylwia-werner sylwia-werner requested a review from mikolvj October 29, 2025 15:52
mikolvj
mikolvj previously approved these changes Nov 4, 2025
@sylwia-werner sylwia-werner changed the base branch from fix/mm2-1280/typescript-errors-pt-2 to test November 4, 2025 08:45
@sylwia-werner sylwia-werner dismissed mikolvj’s stale review November 4, 2025 08:45

The base branch was changed.

mikolvj
mikolvj previously approved these changes Nov 4, 2025
@sylwia-werner sylwia-werner dismissed mikolvj’s stale review November 5, 2025 07:20

The merge-base changed after approval.

@kamilkieres09 kamilkieres09 closed this pull request by merging all changes into test in 5411bb2 Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants