mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-29 16:57:00 +08:00
[AI Assistance] Don't hide changes
When the Patch Widget rerenders the changes may be empty. We should respect the current status. Bug: none Change-Id: I229d9c54f21415511b336a03d88d68efb9a35706 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6416093 Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org> Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org> Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
This commit is contained in:
committed by
Devtools-frontend LUCI CQ
parent
6258ac7044
commit
d0b39ca8fe
@@ -207,7 +207,7 @@ export class PatchWidget extends UI.Widget.Widget {
|
||||
}
|
||||
|
||||
function renderContent(): LitTemplate {
|
||||
if (!input.changeSummary || input.savedToDisk) {
|
||||
if ((!input.changeSummary || input.savedToDisk) && input.patchSuggestionState === PatchSuggestionState.INITIAL) {
|
||||
return nothing;
|
||||
}
|
||||
|
||||
@@ -218,7 +218,7 @@ export class PatchWidget extends UI.Widget.Widget {
|
||||
}
|
||||
|
||||
return html`<devtools-code-block
|
||||
.code=${input.changeSummary}
|
||||
.code=${input.changeSummary ?? ''}
|
||||
.codeLang=${'css'}
|
||||
.displayNotice=${true}
|
||||
></devtools-code-block>
|
||||
|
||||
Reference in New Issue
Block a user