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

Fix/DEV-228 #696

Merged
merged 12 commits into from
Nov 7, 2024
Merged

Fix/DEV-228 #696

merged 12 commits into from
Nov 7, 2024

Conversation

armine-fliplet
Copy link
Contributor

@armine-fliplet armine-fliplet commented Nov 6, 2024

Product areas affected

Fliiplet Form Builder

What does this PR do?

Ensures the Map field is displayed in the form settings or on the screen if it is marked as required and user is able to change and save settings like "Field name", "Field label", "Description" etc for any form field.

JIRA ticket

DEV-227
DEV-228

Copy link
Contributor

@Arpanexe Arpanexe left a comment

Choose a reason for hiding this comment

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

LGTM

var rules = {
value: {}
};

if (this.required && !this.readonly) {
rules.value.required = function() {
return $vm.value.address;
return this.value && this.value.address ? true : false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return this.value && this.value.address ? true : false;
return !!(this.value?.address);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dwfliplet I got ESLint error for ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Then go for:

 return  !!(this.value && this.value.address);

@inna-bieshulia inna-bieshulia merged commit b203ea7 into projects/DEV-95-map Nov 7, 2024
1 of 2 checks passed
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.

5 participants