Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review (codex): cancel stale variation-axes fetch on dataset switch (#1322)
[._.]/ Adam Eivy71f1b7c633a4
diff --git a/client/src/pages/LoraDatasetDetail.jsx b/client/src/pages/LoraDatasetDetail.jsxindex 65ac265f06..e618bf3fbb 100644--- a/client/src/pages/LoraDatasetDetail.jsx+++ b/client/src/pages/LoraDatasetDetail.jsx@@ -247,11 +247,15 @@ export default function LoraDatasetDetail() {useEffect(() => {if (!datasetId || subjectKind(dataset) === 'characters') {setVariationAxes(null);- return;+ return undefined;}+ // Cancel-on-cleanup so a late response from a previous dataset/kind can't+ // overwrite the axes for the one now displayed (object↔place switch race).+ let cancelled = false;getLoraDatasetVariationAxes(datasetId, { silent: true })- .then(setVariationAxes)- .catch(() => setVariationAxes(null));+ .then((axes) => { if (!cancelled) setVariationAxes(axes); })+ .catch(() => { if (!cancelled) setVariationAxes(null); });+ return () => { cancelled = true; };// eslint-disable-next-line react-hooks/exhaustive-deps}, [datasetId, dataset?.character?.entryKind]);