UBER-289: Prevent empty changes to go into transactions. (#3277)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-05-29 17:47:45 +07:00
committed by GitHub
parent eae0107d28
commit 6b7e83ce8c
3 changed files with 3 additions and 3 deletions
@@ -108,7 +108,7 @@
const trimmedTitle = title.trim()
if (trimmedTitle.length > 0 && trimmedTitle !== issue.title) {
if (trimmedTitle.length > 0 && trimmedTitle !== issue.title?.trim()) {
await client.update(issue, { title: trimmedTitle })
}
}