Update update.js

This commit is contained in:
Aleksandr Statciuk 2023-05-24 23:36:53 +03:00
parent ce3a2aeab9
commit 9374bbee71

View file

@ -66,7 +66,7 @@ async function editChannels() {
}
const index = _.findIndex(channels, { id: channel.id })
if (!index) {
if (index < 0) {
updateIssue(issue, { labels: ['channels:edit', 'rejected:wrong_id'] })
return
}