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:
@@ -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
Reference in New Issue
Block a user