Skip to content

Commit

Permalink
Fix the camera zoom field locked to 1 or greater (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwills-jdubs committed Oct 21, 2022
1 parent 9bc221e commit cada75e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const CameraComponentEditor: React.FC<ICameraComponentEditorProps> = ({

const updateZoom = (value: number) => {
const zoomOptionIndex = zoomOptions.findIndex((option) => option.value === value.toString());
if (zoomOptionIndex > 1) {
if (zoomOptionIndex > -1) {
setSelectedZoomOption(zoomOptions[zoomOptionIndex]);
} else {
setSelectedZoomOption({
Expand Down

0 comments on commit cada75e

Please sign in to comment.