Remove deep legal analysis button from redact results
ask still gets the button; redact results no longer offer it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-5
@@ -1299,11 +1299,9 @@ async function runTool(event) {
|
||||
latency_ms: data.latency_ms || 0,
|
||||
});
|
||||
}
|
||||
// Offer "Run deep legal analysis" on ask/redact results
|
||||
if (['ask', 'redact'].includes(state.activeTool)) {
|
||||
const askText = state.activeTool === 'ask'
|
||||
? ((lastToolPayload && lastToolPayload.question) || (data.answer || data.what_we_found || ''))
|
||||
: (lastToolPayload && lastToolPayload.text) || (data.redacted_text || '');
|
||||
// Offer "Run deep legal analysis" on ask results
|
||||
if (state.activeTool === 'ask') {
|
||||
const askText = (lastToolPayload && lastToolPayload.question) || (data.answer || data.what_we_found || '');
|
||||
const resEl = els.results || document.getElementById('results');
|
||||
if (askText && resEl) {
|
||||
dbnInjectLegalAnalysisButton(askText, (lastToolPayload && lastToolPayload.language) || 'no', state.activeTool, resEl);
|
||||
|
||||
Reference in New Issue
Block a user