Skip to content

ROU-12857: Ensure directions waypoints are always defined#265

Merged
os-davidlourenco merged 1 commit into
devfrom
ROU-12857
Jun 18, 2026
Merged

ROU-12857: Ensure directions waypoints are always defined#265
os-davidlourenco merged 1 commit into
devfrom
ROU-12857

Conversation

@os-davidlourenco

Copy link
Copy Markdown
Contributor

This PR is to improve the directions waypoints instantiation to ensure it is never undefined.

What was happening

  • When the user tried to remove routes without adding them first, the waypoints array was undefined
  • The access to the waypoint length when the waypoints were undefined raised an error

What was done

  • In the instantiation of the waypoint, an empty array is used the value is undefined

Test Steps

  1. Open the sample application
  2. Open the development tools
  3. Validate that no error is visible on the console

Checklist

  • tested locally
  • documented the code
  • clean all warnings and errors of eslint
  • requires changes in OutSystems (if so, provide a module with changes)
  • requires new sample page in OutSystems (if so, provide a module with changes)

@os-davidlourenco os-davidlourenco added the bug Something isn't working label Jun 15, 2026
@os-davidlourenco os-davidlourenco requested a review from a team as a code owner June 15, 2026 11:14
@sonarqubecloud

Copy link
Copy Markdown

@os-davidlourenco os-davidlourenco merged commit 66f8f00 into dev Jun 18, 2026
18 of 19 checks passed
@os-davidlourenco os-davidlourenco deleted the ROU-12857 branch June 18, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants