Skip to content

Commit

Permalink
fix: property name
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice committed Sep 18, 2024
1 parent 193ddac commit 5ee3bd9
Showing 1 changed file with 5 additions and 8 deletions.
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 5ee3bd9

Please sign in to comment.