Fix "Suggest fix" not expanding collapsed log entries (#32015)

GitOrigin-RevId: 9668526a5e388fa7723fab6d394b71b509101360
This commit is contained in:
Copilot
2026-03-09 09:05:53 +00:00
committed by Copybot
parent 27aac33259
commit 2fc8ca6e3d
@@ -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'