From 268c71f2d7c641b8058039e96a852f282a8af738 Mon Sep 17 00:00:00 2001 From: Piotr Kawula Date: Thu, 25 Apr 2024 14:00:59 +0200 Subject: [PATCH] Update django/views/templates/i18n_catalog.js Co-authored-by: Jacob Walls --- django/views/templates/i18n_catalog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/templates/i18n_catalog.js b/django/views/templates/i18n_catalog.js index 33dddf0c0a..83ce7111d3 100644 --- a/django/views/templates/i18n_catalog.js +++ b/django/views/templates/i18n_catalog.js @@ -36,7 +36,7 @@ } // if value in catalog is an array and index is present, return the array index if exists - if (value && value.constructor === Array && index != undefined) { + if (value && value.constructor === Array && index !== undefined) { const text = value[index]; if (typeof text === 'string' && text) {