Skip to content

Commit

Permalink
fix: storytelling widget does not get layers' title (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Jul 12, 2022
1 parent 8dbc889 commit 5ff72b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export default function ({
...story,
title: story.title || (story.layer && findLayerById?.(story.layer)?.title) || "",
}));
}, [findLayerById, storiesData]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [findLayerById, storiesData, reearth?.layers?.layers]);

const selectAt = useCallback(
(index: number) => {
Expand Down

0 comments on commit 5ff72b7

Please sign in to comment.