From a844ffcf23a91ae887f47f5043eb45d77957556d Mon Sep 17 00:00:00 2001 From: Mark W <24956497+ndg63276@users.noreply.github.com> Date: Wed, 18 Oct 2023 09:40:55 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Guilherme Francisco --- client/src/js/modules/dc/views/gridplot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/js/modules/dc/views/gridplot.js b/client/src/js/modules/dc/views/gridplot.js index 9e0c8ee4b..8dd2b2252 100644 --- a/client/src/js/modules/dc/views/gridplot.js +++ b/client/src/js/modules/dc/views/gridplot.js @@ -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') }