_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 Userβ€’3y ago
Message Not Public
Sign In & Join Server To View
_mercury πŸ‡΅πŸ‡Έ
Aha sorry .. yes that is the problem of having many languages in min
lebouwski
lebouwskiβ€’3y 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 πŸ‡΅πŸ‡Έ
Thx Easier
reactibot
reactibotβ€’3y 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

Did you find this page helpful?