Skip to content

Commit

Permalink
Merge pull request #1424 from dbauszus-glx/entry-node-new-location
Browse files Browse the repository at this point in the history
entry without node in valChangeMethod on a new location.
  • Loading branch information
RobAndrewHurst authored Aug 22, 2024
2 parents 1f7f2f4 + 11b9168 commit 199f792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/locations/view.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ function valChange(e) {
if (entry.value != entry.newValue) {

// newValue is different from value.
entry.node.classList.add('val-changed')
entry.node?.classList.add('val-changed')

} else {

// newValue is the same as value.
delete entry.newValue
entry.node.classList.remove('val-changed')
entry.node?.classList.remove('val-changed')
}

if (location.infoj.some(entry => entry.invalid)) {
Expand Down

0 comments on commit 199f792

Please sign in to comment.