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

Publish page: run the DistroKid answer handover once the platforms have loaded

Claude8fd12d2c77dd
diff --git a/client/src/components/musicVideo/PublishPostingPanel.jsx b/client/src/components/musicVideo/PublishPostingPanel.jsx
index 75fb52cd0b..2e140a3ee1 100644
--- a/client/src/components/musicVideo/PublishPostingPanel.jsx
+++ b/client/src/components/musicVideo/PublishPostingPanel.jsx
@@ -367,9 +367,10 @@ function TargetRow({ project, kit, entry, publishing }) {
const legacy = legacyDistrokid();
if (!Object.keys(legacy).length) return;
publishing.setPlatform('distrokid', { defaults: legacy }).then((saved) => { if (saved) safeRemoveStorage(SONGWRITER_KEY); });
- // Once per mount: the settings answer above wins from then on.
+ // Once the platforms have loaded (rows only render after that, since they
+ // come from enabledTargets); the settings answer wins from then on.
// eslint-disable-next-line react-hooks/exhaustive-deps
- }, [target]);
+ }, [target, !!publishing.platforms?.distrokid]);
const [confirmDiscard, setConfirmDiscard] = useState(false);
const [confirmAgain, setConfirmAgain] = useState(false);
const draft = publishing.drafts[target];