Skip to content

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

address review (codex): clear variation axes before refetch on dataset switch (#1322)

[._.]/ Adam Eivycde2d5c09db6
diff --git a/client/src/pages/LoraDatasetDetail.jsx b/client/src/pages/LoraDatasetDetail.jsx
index e618bf3fbb..c4b37ea5cd 100644
--- a/client/src/pages/LoraDatasetDetail.jsx
+++ b/client/src/pages/LoraDatasetDetail.jsx
@@ -249,9 +249,11 @@ export default function LoraDatasetDetail() {
setVariationAxes(null);
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).
+ // Clear first so a direct object↔place switch can't seed the generate
+ // dialog from the previous kind's axes while the new fetch is in flight,
+ // and cancel-on-cleanup so a late response can't overwrite the current one.
let cancelled = false;
+ setVariationAxes(null);
getLoraDatasetVariationAxes(datasetId, { silent: true })
.then((axes) => { if (!cancelled) setVariationAxes(axes); })
.catch(() => { if (!cancelled) setVariationAxes(null); });