DanielZambSB / Equipo-IA

0 stars 0 forks source link

Bad behaviour on the URL position counter #12

Closed DanielZambSB closed 4 months ago

DanielZambSB commented 5 months ago

Describe the bug The URL position counter is behaving badly, when the position not changed it throws out an error, when it does change it recovers normal function, and lets the user save the position. Say the user didnt touch the +/- buttons, and only pressed save because there was only 1 parameter to begin with, then an error shows "the position you saved is invalid, should be between [1,30] but you put -1"

To Reproduce Steps to reproduce the behavior:

  1. Go to URL y Envios.
  2. Click on "Yes", the button that indicates the template has urlOptions.
  3. click on Save.
  4. See error.

Expected behavior I want the user to be capable of saving the urlposition, be that the first position if the +/- buttons have not yet been interacted with.

Screenshots WhatsApp Image 2024-01-17 at 11 31 55 AM WhatsApp Image 2024-01-17 at 11 32 06 AM

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

DanielZambSB commented 4 months ago

solved!