Skip to content

JS-fix: test the existence of collection as well#20075

Merged
nielslyngsoe merged 2 commits intomainfrom
v16/bugfix/fix-collection-condition-js-error
Sep 5, 2025
Merged

JS-fix: test the existence of collection as well#20075
nielslyngsoe merged 2 commits intomainfrom
v16/bugfix/fix-collection-condition-js-error

Conversation

@nielslyngsoe
Copy link
Copy Markdown
Member

Fixing a minor mistake, to avoid js errors in console.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a JavaScript error by adding null safety to a type guard function. The change prevents potential runtime errors when accessing properties on a potentially undefined collection object.

  • Adds optional chaining operator to prevent accessing properties on undefined objects

@nielslyngsoe nielslyngsoe merged commit f07d691 into main Sep 5, 2025
27 checks passed
@nielslyngsoe nielslyngsoe deleted the v16/bugfix/fix-collection-condition-js-error branch September 5, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants