Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
reearth-app[bot] committed Sep 18, 2024
2 parents 6d10907 + 08d5d27 commit 6df7fc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: yarn build
- name: Pack
run: mv dist reearth-web && tar -zcvf reearth-web.tar.gz reearth-web
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: reearth-web
path: web/reearth-web.tar.gz
Expand All @@ -73,7 +73,7 @@ jobs:
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: reearth-web
- name: Rename artifact
Expand Down
13 changes: 5 additions & 8 deletions web/src/beta/features/Visualizer/Crust/StoryPanel/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ export default (
return visualizer?.current?.timeline?.current?.commit({
cmd: "SET_TIME",
payload: {
start:
visualizer?.current?.timeline?.current?.computedTimeline?.start,
start: time,
current: time,
stop: visualizer?.current?.timeline?.current?.computedTimeline?.stop
stop: time
},
committer: { source: "storyPage", id: currentPageId }
});
Expand All @@ -120,11 +119,9 @@ export default (

const handlePageTime = useCallback(
(page: StoryPage) => {
const timePointField = page.property?.timePoint;
if (!timePointField?.timePoint?.value) return;
return onTimeChange?.(
new Date(formatISO8601(timePointField?.timePoint?.value) ?? "")
);
const time = page.property?.timePoint?.timePoint;
if (!time) return;
onTimeChange?.(new Date(formatISO8601(time)));
},
[onTimeChange]
);
Expand Down

0 comments on commit 6df7fc4

Please sign in to comment.