Skip to content

Commit

Permalink
Merge pull request #22 from udohjeremiah/dev
Browse files Browse the repository at this point in the history
Fix: Client hydration warning/error.
  • Loading branch information
udohjeremiah authored Apr 7, 2024
2 parents e33fbdb + 55e4f39 commit 48a84c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/APIList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export default function APIList({ apis = [] }: APIListProps) {

const isMounted = useMounted();

const baseUrl = `${window.location.origin}/api/${params.storeId}`;

if (!isMounted) {
return null;
}

const baseUrl = `${window.location.origin}/api/${params.storeId}`;

return (
<>
{apis.map(({ title, route, variant }, index) => (
Expand Down

0 comments on commit 48a84c0

Please sign in to comment.