mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 01:55:00 +02:00
UBER-289: Prevent empty changes to go into transactions. (#3277)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user