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

Tolerate a null revertible list in StaleApprovalActions

Claude22022814a24f
diff --git a/client/src/components/musicVideo/StaleApprovalActions.jsx b/client/src/components/musicVideo/StaleApprovalActions.jsx
index 72ba93df29..9ed78e8239 100644
--- a/client/src/components/musicVideo/StaleApprovalActions.jsx
+++ b/client/src/components/musicVideo/StaleApprovalActions.jsx
@@ -8,8 +8,8 @@ const buttonClass = 'flex items-center gap-1 rounded border border-port-border p
* whose approved value was kept (`revertible` → `onRevert(field)`). Renders
* nothing when neither applies.
*/
-export default function StaleApprovalActions({ revertible = [], busy = false, onKeep, onRevert, keepTitle = 'Keep this approved on the current inputs' }) {
- const reverts = onRevert ? revertible : [];
+export default function StaleApprovalActions({ revertible, busy = false, onKeep, onRevert, keepTitle = 'Keep this approved on the current inputs' }) {
+ const reverts = onRevert ? revertible || [] : [];
if (!onKeep && !reverts.length) return null;
return (
<div className="flex flex-wrap gap-2">