Skip to content

Commit

Permalink
remove useless ??
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnnnii committed Aug 28, 2024
1 parent debaacc commit e368eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/arcgis/sketch/sketch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const SketchTooltip = memo(
}
)

export default function Sketch({ ref, children, disableZ }: PropsWithChildren<SketchProps>) {
export default function Sketch({ ref, children, disableZ = false }: PropsWithChildren<SketchProps>) {
const view = useSceneView();
const layer = useGraphicsLayer();

Expand All @@ -65,7 +65,7 @@ export default function Sketch({ ref, children, disableZ }: PropsWithChildren<Sk
}));

useEffect(() => {
sketch.defaultCreateOptions.hasZ = !disableZ ?? true
sketch.defaultCreateOptions.hasZ = !disableZ
}, [disableZ, sketch.defaultCreateOptions])

useProvideRef(sketch, ref);
Expand Down

0 comments on commit e368eaf

Please sign in to comment.