Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Francisco <[email protected]>
  • Loading branch information
ndg63276 and gfrn authored Oct 18, 2023
1 parent dcd88dd commit a844ffc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/js/modules/dc/views/gridplot.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,12 @@ define(['jquery', 'marionette',

_getVal: function(pos) {
var val = null
var d = []
let d = []
if (this.ui.ty.is(":visible")) {
d = Number(this.ui.ty.val()) > -1 ? this.distl.get('data')[Number(this.ui.ty.val())] : []
}
if (this.ui.ty2.is(":visible")) {
var a = this.attachments.findWhere({ 'DATACOLLECTIONFILEATTACHMENTID': this.ui.ty2.val() })
let a = this.attachments.findWhere({ 'DATACOLLECTIONFILEATTACHMENTID': this.ui.ty2.val() })
if (a && a.get('DATA')) {
d = a.get('DATA')
}
Expand Down

0 comments on commit a844ffc

Please sign in to comment.