Skip to content

Commit 413f5ed

Browse files
committed
Make project draft logic less specific to the one snapshot.
1 parent d66cfa8 commit 413f5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/enhancers/github/GitHubEditEnhancer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class GitHubEditEnhancer implements CommentEnhancer<GitHubEditSpot> {
4444
const isInCommentBox = textarea.closest(
4545
'[class*="Shared-module__CommentBox"]'
4646
)
47-
if (textarea.closest("[role='dialog']") && !isInCommentBox) {
47+
if (!isInCommentBox) {
4848
const unique_key = `github.com:project-draft:${itemId}:edit-body`
4949
logger.debug(
5050
`${this.constructor.name} enhanced project draft body textarea`,

0 commit comments

Comments
 (0)