diff --git a/ui/src/ui/views/exec-approval.ts b/ui/src/ui/views/exec-approval.ts index 0c530820f84..9ac7b4bec49 100644 --- a/ui/src/ui/views/exec-approval.ts +++ b/ui/src/ui/views/exec-approval.ts @@ -40,11 +40,13 @@ function renderExecBody(request: ExecApprovalRequestPayload) { function renderPluginBody(active: ExecApprovalRequest) { return html` - ${active.pluginDescription - ? html`
+    ${
+      active.pluginDescription
+        ? html`
 ${active.pluginDescription}
` - : nothing} + : nothing + }
${renderMetaRow("Severity", active.pluginSeverity)} ${renderMetaRow("Plugin", active.pluginId)} ${renderMetaRow("Agent", active.request.agentId)} @@ -81,9 +83,11 @@ export function renderExecApprovalPrompt(state: AppViewState) { }
${isPlugin ? renderPluginBody(active) : renderExecBody(request)} - ${state.execApprovalError - ? html`
${state.execApprovalError}
` - : nothing} + ${ + state.execApprovalError + ? html`
${state.execApprovalError}
` + : nothing + }