Skip to content

Commit

Permalink
Fix zeplinLink not being found in the initial load of story
Browse files Browse the repository at this point in the history
  • Loading branch information
Cengizhan Basak authored and yuqu committed Jul 11, 2023
1 parent f237b6b commit e08ea8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/hooks/useLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ export const useLinks = (zeplinLink: unknown): State => {
setState({ links: [{ link: zeplinLink, name: "Component" }], error: null, linksLoading: false });
}
}
}, [storyId]);
}, [storyId, zeplinLink]);
return state;
}

0 comments on commit e08ea8a

Please sign in to comment.