Skip to content

Commit

Permalink
fix: decoration, viewer pages runtime error .
Browse files Browse the repository at this point in the history
  • Loading branch information
tsengyushiang committed Mar 5, 2024
1 parent d45dab8 commit ae40a94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ The format is based on [Keep a Changelog](https://github.com/olivierlacan/keep-a

### Fixed

- Fix `decoration`, `viewer` pages runtime error. (https://github.com/yushiang-demo/pano-to-mesh/pull/77)

### Removed

## [2.1.1] - 2024-03-05
Expand Down
2 changes: 2 additions & 0 deletions apps/editors/decoration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ const Editor = ({ data }) => {
[focusedIndex]
);

if (!panorama) return null;

return (
<>
<ThreeCanvas dev={dev} ref={threeRef} {...eventHandlers}>
Expand Down
2 changes: 2 additions & 0 deletions apps/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ const Viewer = ({ data }) => {
);
});

if (!panorama) return null;

return (
<>
<ThreeCanvas dev={dev} ref={threeRef} {...eventsHandlers}>
Expand Down

0 comments on commit ae40a94

Please sign in to comment.