[eric] apps: drop redundant reloadKey bump on manual save (captureSignal covers it)

This commit is contained in:
ciregenz
2026-06-22 03:28:08 -07:00
parent d9fc21da71
commit 1bb5d3e237
@@ -91,8 +91,9 @@ const HistoryPanel: React.FC<Props> = ({ outputId, isAgentActive, saveLabel, onB
const handleSave = useCallback(async () => {
setSaving(true);
try {
// No reloadKey bump: captureOutputVersion.fulfilled bumps captureSignal,
// which already drives the refetch. Bumping both = a double fetch.
await dispatch(captureOutputVersion({ id: outputId, source: 'manual', label: saveLabel || '' })).unwrap();
setReloadKey((k) => k + 1);
flash('ok', 'Saved this version.');
} catch {
flash('err', "Couldn't save this version. Try again.");