Ensure that we resolve attachments before displaying them
This commit is contained in:
parent
72f979ea1d
commit
d8708e4e73
9 changed files with 319 additions and 31 deletions
|
@ -198,6 +198,11 @@ export const StoryViewer = ({
|
|||
// We need to be careful about this effect refreshing, it should only run
|
||||
// every time a story changes or its duration changes.
|
||||
useEffect(() => {
|
||||
if (!storyDuration) {
|
||||
spring.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
spring.start({
|
||||
config: {
|
||||
duration: storyDuration,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue