Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated nested field logic #445

Merged
merged 4 commits into from
Sep 5, 2024
Merged

updated nested field logic #445

merged 4 commits into from
Sep 5, 2024

Conversation

darshan-iterable
Copy link

@darshan-iterable darshan-iterable commented Sep 2, 2024

JIRA Ticket(s) if any

Description

Updated logic same as Android PR comments to maintain consistency in functionality

Copy link
Contributor

@mprew97 mprew97 left a comment

Choose a reason for hiding this comment

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

One nit but otherwise lgtm

@@ -351,21 +351,14 @@ class CriteriaCompletionChecker {

if (field.includes('.')) {
const fields = field.split('.');
if (Array.isArray(eventData[fields[0]])) {
return eventData[fields[0]]?.every((item: any) => {
const firtElement = eventData?.[fields[0]];
Copy link
Contributor

Choose a reason for hiding this comment

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

typo here

Suggested change
const firtElement = eventData?.[fields[0]];
const firstElement = eventData?.[fields[0]];

Copy link
Author

Choose a reason for hiding this comment

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

Fixed typo

@davidtruong
Copy link

Verified logic for nested works properly

@mprew97 mprew97 merged commit 4013132 into AUT_main Sep 5, 2024
1 check passed
@mprew97 mprew97 deleted the bugfix/nested-field-types branch September 5, 2024 18:27
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