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:
parent
d3b92d0bbd
commit
268c71f2d7
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user