fix: JSX comment inside ternary breaks parsing

This commit is contained in:
2026-08-05 08:51:10 +01:00
parent 592962325d
commit 975a965b10
+3 -5
View File
@@ -679,8 +679,7 @@ export default function ReasoningWorkspace({
{updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />} {updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />}
{/* ── Response area (replaced by loading / error during reasoning) ─ */} {/* ── Response area (replaced by loading / error during reasoning) ─ */}
{!isUpdating ? ( {!isUpdating && canAnswer ? (
canAnswer && (
<form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5"> <form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5">
<div> <div>
<label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700"> <label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700">
@@ -709,9 +708,8 @@ export default function ReasoningWorkspace({
</button> </button>
</div> </div>
</form> </form>
) ) : !isUpdating ? null : (
) : ( /* Local update loading card — replaces the response panel during reasoning */
/* ── Local update loading card (replaces response panel) ─ */}
<LoadingOverlay <LoadingOverlay
elapsed={updateElapsed} elapsed={updateElapsed}
currentMessage={updateMsg} currentMessage={updateMsg}