_mercury – 11-01 Aug 9

why contains is not accepted here
if (!Object.keys(labels).contains('0')) {
setLabelsErr('English label is required');
}
if (!Object.keys(labels).contains('0')) {
setLabelsErr('English label is required');
}
??
UU
Unknown User617d ago
M
_mercury617d ago
Aha sorry .. yes that is the problem of having many languages in min
L
lebouwski617d ago
you don't need to find an object key, you can just check if it exists directly
if (!('0' in labels)) {
if (!('0' in labels)) {
M
_mercury617d ago
Thx Easier
UU
Unknown User616d ago