Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros committed Jun 28, 2024
1 parent c078f23 commit e6b59ea
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions ui-src/parser/creators/symbols/symbolTouched.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@ export const symbolTouched = (
const propertyReferenceVisible = componentPropertyReferences.visible;
const propertyReferenceCharacters = componentPropertyReferences.characters;

if (propertyReferenceVisible) {
if (
visible !== componentProperties.get(propertyReferenceVisible)?.defaultValue &&
!touched?.includes(':visibility-group')
) {
touched?.push(':visibility-group');
}
if (
propertyReferenceVisible &&
visible !== componentProperties.get(propertyReferenceVisible)?.defaultValue &&
!touched?.includes(':visibility-group')
) {
touched?.push(':visibility-group');
}

if (propertyReferenceCharacters) {
if (
characters !== componentProperties.get(propertyReferenceCharacters)?.defaultValue &&
!touched?.includes(':content-group')
) {
touched?.push(':content-group');
}
if (
propertyReferenceCharacters &&
characters !== componentProperties.get(propertyReferenceCharacters)?.defaultValue &&
!touched?.includes(':content-group')
) {
touched?.push(':content-group');
}

return touched;
Expand Down

0 comments on commit e6b59ea

Please sign in to comment.