Skip to content

Commit

Permalink
Update CameraSettingsStore.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Oct 17, 2023
1 parent 77c0502 commit cb40a4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion photon-client/src/stores/settings/CameraSettingsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ export const useCameraSettingsStore = defineStore("cameraSettings", {
settings: Partial<ActivePipelineSettings>,
cameraIndex: number = useStateStore().currentCameraIndex
) {
Object.assign(this.cameras[cameraIndex].pipelineSettings, settings);
Object.entries(settings).forEach(([k, v]) => {
this.cameras[cameraIndex].pipelineSettings[k] = v;
});
},
/**
* Change the nickname of the currently selected pipeline of the provided camera.
Expand Down

0 comments on commit cb40a4d

Please sign in to comment.