Skip to content

Commit

Permalink
Ensure subject overrides are carried over
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Nov 22, 2023
1 parent 1468cf2 commit 244053b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/src/stories/pages/guided-mode/data/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export function resolveGlobalOverrides(subject, globalState) {
delete subjectMetadataCopy.sessions; // Remove extra key from metadata

const overrides = structuredClone(globalState.project ?? {}); // Copy project-wide metadata
merge(subjectMetadataCopy, overrides.Subject);

merge(subjectMetadataCopy, overrides.Subject ?? (overrides.Subject = {})); // Ensure Subject exists

return overrides;
}
Expand Down

0 comments on commit 244053b

Please sign in to comment.