feat(confidence-engine): v0.60j preserve investigation on restart
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import React from "react";
|
||||
import { listInvestigations, clearInvestigation } from "@/lib/storage/investigation-storage";
|
||||
import { listInvestigations, restartInvestigation } from "@/lib/storage/investigation-storage";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
@@ -98,7 +98,7 @@ function Portfolio() {
|
||||
<button
|
||||
onClick={() => {
|
||||
setShowRestartConfirm(null);
|
||||
try { clearInvestigation(summary.id); } catch (_) { /* storage must not crash caller */ }
|
||||
try { restartInvestigation(summary.id); } catch (_) { /* storage must not crash caller */ }
|
||||
setSummaries(listInvestigations());
|
||||
}}
|
||||
className="rounded-lg border border-red-400 bg-white px-4 py-2 text-sm font-medium text-red-700 hover:bg-red-50 transition"
|
||||
|
||||
Reference in New Issue
Block a user