Fix "Suggest fix" not expanding collapsed log entries (#32015)
GitOrigin-RevId: 9668526a5e388fa7723fab6d394b71b509101360
This commit is contained in:
@@ -33,10 +33,9 @@ export const useLogEvents = (setShowLogs: (show: boolean) => void) => {
|
||||
if (logEntry) {
|
||||
scrollIntoView(logEntry)
|
||||
|
||||
const expandCollapseButton =
|
||||
logEntry.querySelector<HTMLButtonElement>(
|
||||
'button[data-action="expand-collapse"]'
|
||||
)
|
||||
const expandCollapseButton = logEntry.querySelector<HTMLElement>(
|
||||
'[data-action="expand-collapse"]'
|
||||
)
|
||||
|
||||
const collapsed = expandCollapseButton?.dataset.collapsed === 'true'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user