Skip to content

Commit

Permalink
feat(viewer): apply _resetViewport default value when viewport reset
Browse files Browse the repository at this point in the history
  • Loading branch information
LTakhyunKim committed Oct 24, 2022
1 parent fefdf68 commit d17627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/insight-viewer/src/hooks/useViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useViewport(initialViewport?: Partial<BasicViewport>): {
function resetViewport() {
setViewport({
...viewport,
_resetViewport: initialViewport,
_resetViewport: initialViewport ?? {},
})
}

Expand Down

0 comments on commit d17627d

Please sign in to comment.