From 3330e9693f2e882a61d3b255e834b6e68c56009f Mon Sep 17 00:00:00 2001 From: willdunklin Date: Wed, 8 Nov 2023 11:24:05 -0500 Subject: [PATCH] Remove var usage in AssetstoreView render code --- import_tracker/web_client/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import_tracker/web_client/main.js b/import_tracker/web_client/main.js index e51fea2..94b072a 100644 --- a/import_tracker/web_client/main.js +++ b/import_tracker/web_client/main.js @@ -36,7 +36,7 @@ wrap(AssetstoreView, 'render', function (render) { function () { // we can't just use the index of the after call, since not // all assetstores will have import buttons. - var assetstore = assetstores.get($(this).closest('.g-assetstore-buttons').find('[cid]').attr('cid')); + const assetstore = assetstores.get($(this).closest('.g-assetstore-buttons').find('[cid]').attr('cid')); return importDataButton({ importsPageLink: `#assetstore/${assetstore.id}/imports` }); } );