summaryrefslogtreecommitdiff
path: root/source/features/sync-pr-commit-title.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-04-26 21:02:00 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-26 21:02:00 +0800
commit841b0f8cc06f41d05faefe80b314689785c4779b (patch)
tree032ca29503bab1eed29439657f25a059f1774d99 /source/features/sync-pr-commit-title.tsx
parentb128db06a6fc3cdc88745ee21ca5b9c414db99e8 (diff)
downloadrefined-github-841b0f8cc06f41d05faefe80b314689785c4779b.tar.gz
refined-github-841b0f8cc06f41d05faefe80b314689785c4779b.tar.zst
refined-github-841b0f8cc06f41d05faefe80b314689785c4779b.zip
Avoid race conditions in PR merge commit fields (#6584)23.4.26
Diffstat (limited to '')
-rw-r--r--source/features/sync-pr-commit-title.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/sync-pr-commit-title.tsx b/source/features/sync-pr-commit-title.tsx
index 36aa04d1..80116198 100644
--- a/source/features/sync-pr-commit-title.tsx
+++ b/source/features/sync-pr-commit-title.tsx
@@ -2,7 +2,6 @@ import React from 'dom-chef';
import select from 'select-dom';
import delegate from 'delegate-it';
import * as pageDetect from 'github-url-detection';
-import * as textFieldEdit from 'text-field-edit';
import * as api from '../github-helpers/api';
import features from '../feature-manager';
@@ -66,7 +65,8 @@ async function updatePRTitle(): Promise<void> {
async function updateCommitTitle(): Promise<void> {
const field = getCurrentCommitTitleField()!;
if (field) {
- textFieldEdit.set(field, createCommitTitle());
+ // Do not use `text-field-edit` #6348
+ field.value = createCommitTitle();
}
}