1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Update django/views/templates/i18n_catalog.js

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
This commit is contained in:
Piotr Kawula 2024-04-25 14:00:59 +02:00 committed by GitHub
parent d3b92d0bbd
commit 268c71f2d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@
} }
// if value in catalog is an array and index is present, return the array index if exists // 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]; const text = value[index];
if (typeof text === 'string' && text) { if (typeof text === 'string' && text) {