From d9da254a637da2ab6ef78412b6d6171637e665a9 Mon Sep 17 00:00:00 2001 From: Boris Sekachev <40690378+bsekachev@users.noreply.github.com> Date: Fri, 26 Oct 2018 13:51:27 +0300 Subject: [PATCH] ESLint fixes (#161) --- .../tf_annotation/static/tf_annotation/js/tf_annotation.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cvat/apps/tf_annotation/static/tf_annotation/js/tf_annotation.js b/cvat/apps/tf_annotation/static/tf_annotation/js/tf_annotation.js index 7c75df3e..f7e0f3f0 100644 --- a/cvat/apps/tf_annotation/static/tf_annotation/js/tf_annotation.js +++ b/cvat/apps/tf_annotation/static/tf_annotation/js/tf_annotation.js @@ -4,6 +4,8 @@ * SPDX-License-Identifier: MIT */ +"use strict"; + function CheckTFAnnotationRequest(taskId, tfAnnotationButton) { let frequence = 5000; let errorCount = 0; @@ -90,9 +92,9 @@ window.cvat.dashboard = window.cvat.dashboard || {}; window.cvat.dashboard.uiCallbacks = window.cvat.dashboard.uiCallbacks || []; window.cvat.dashboard.uiCallbacks.push(function(newElements) { - tids = []; + let tids = []; for (let el of newElements) { - tids.push(el.id.split('_')[1]) + tids.push(el.id.split('_')[1]); } $.ajax({