_mercury
_mercury2y ago

_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');
}
??
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
_mercury
_mercury2y ago
Aha sorry .. yes that is the problem of having many languages in min
lebouwski
lebouwski2y 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)) {
_mercury
_mercury2y ago
Thx Easier
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1006517505625432094