mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
fix: [code-836]: fix issue where code comments cant be added (#420)
This commit is contained in:
parent
4b36713c0d
commit
32888b07ce
@ -143,7 +143,8 @@ export function getCommentLineInfo(
|
||||
) {
|
||||
const isSideBySideView = viewStyle === ViewStyle.SIDE_BY_SIDE
|
||||
const { left, lineNumber, filePath } = commentEntry
|
||||
const filePathBody = contentDOM?.querySelector(`[data="${filePath}"`)
|
||||
console.log(commentEntry)
|
||||
const filePathBody = filePath ? contentDOM?.querySelector(`[data="${filePath}"`) : contentDOM
|
||||
|
||||
const diffBody = filePathBody?.querySelector(
|
||||
`${isSideBySideView ? `.d2h-file-side-diff${left ? '.left' : '.right'} ` : ''}.d2h-diff-tbody`
|
||||
|
@ -286,7 +286,7 @@ export default function Webhooks() {
|
||||
showWhen={() => webhooks?.length === 0}
|
||||
forSearch={!!searchTerm}
|
||||
message={getString('webhookEmpty')}
|
||||
buttonText={getString('createWebhook')}
|
||||
buttonText={getString('newWebhook')}
|
||||
onButtonClick={() =>
|
||||
history.push(
|
||||
routes.toCODEWebhookNew({
|
||||
|
Loading…
Reference in New Issue
Block a user