fix: section sub-tracks nullify instrument instead of inheriting

handleEditSectionInTab fallback branch explicitly set
instrumentId: null, instrumentProgram: undefined,
instrumentName: null, overriding parent track's values
spread by ...t. Changed to inherit from parent track:
instrumentId: t.instrumentId || null,
instrumentProgram: t.instrumentProgram,
instrumentName: t.instrumentName || null
This commit is contained in:
2026-07-28 08:18:43 +07:00
parent ed51cab765
commit f2ac70eee0
3 changed files with 10 additions and 4 deletions
+3 -3
View File
@@ -8514,9 +8514,9 @@ const App = () => {
markers: [],
isArmed: false,
monitoringEnabled: true,
instrumentId: null,
instrumentProgram: undefined,
instrumentName: null
instrumentId: t.instrumentId || null,
instrumentProgram: t.instrumentProgram,
instrumentName: t.instrumentName || null
}));
setSessionTabs(prev => [...prev, { id: tabId, name: tabName, sectionId: sectionId, tracks: clonedTracks, color: section.color || null }]);
setActiveTab(tabId);
File diff suppressed because one or more lines are too long