Revert "fix: all auto fixable eslint issues (#31900)" (#32203)

This reverts commit 228180b1ef.
This commit is contained in:
Syed Ali Abbas Zaidi
2023-05-09 13:53:54 +05:00
committed by GitHub
parent 228180b1ef
commit adf879e8b2
354 changed files with 1489 additions and 1498 deletions

View File

@@ -5,10 +5,10 @@ define(['jquery', 'underscore'], function($, _) {
* @returns The loaded template.
*/
var loadTemplate = function(name) {
var templateSelector = `#${name}-tpl`,
var templateSelector = '#' + name + '-tpl',
templateText = $(templateSelector).text();
if (!templateText) {
console.error(`Failed to load ${name} template`);
console.error('Failed to load ' + name + ' template');
}
return _.template(templateText);
};