Skip to content

Conversation

@nicholas-maestrello
Copy link
Contributor

What does this PR do?

Fixes a bug in the quickorder upload review table where line numbers were displaying incorrectly due to React re-renders incrementing a local counter variable multiple times.

How to test it?

  1. Access /quickorder page
  2. Upload a spreadsheet with multiple SKUs
  3. Click "Validate"
  4. Verify that line numbers in the review table display correctly (1, 2, 3, etc.)
  5. Interact with the table (edit fields, change sellers) and confirm line numbers remain stable

Describe alternatives you've considered, if any.

  • Using useRef to maintain the counter state - rejected as unnecessarily complex
  • Using rowData.line instead of rowData.index - both work, but index is more consistently maintained throughout the component

@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Jan 9, 2026

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

vtex-io-docs-bot bot commented Jan 9, 2026

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Warnings
⚠️

Looks like this PR is too large [:bulb: smaller PRs are easy to review and approve]

Messages
📖 ❤️ Thanks!
📖

🎉 PR additions = 763, PR deletions = 27

Generated by 🚫 dangerJS against 906c5e5


return <div>{refidLoading ? '-' : count}</div>
cellRenderer: ({ rowData }: any) => {
return <div> {refidLoading ? '-' : rowData.index + 1}</div>

Choose a reason for hiding this comment

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

Vale extrair para uma variável externa.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rodrigo-tavares alterado

@nicholas-maestrello nicholas-maestrello merged commit 7678479 into master Jan 13, 2026
13 of 15 checks passed
@nicholas-maestrello nicholas-maestrello deleted the B2BTEAM-3091 branch January 13, 2026 14:09
@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Jan 13, 2026

Your PR has been merged! App is being published. 🚀
Version 3.16.3 → 3.16.4

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.quickorder@3.16.4

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

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.

3 participants