Skip to content

Commit

Permalink
add statement for checking id
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Dec 11, 2023
1 parent ba1ba13 commit b52c7cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/components/communitySettings/platform/TcPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function TcPlatform({ platformName = 'Discord' }: TcPlatformProps) {
};

useEffect(() => {
if (!id) return;
fetchPlatform();
}, [id, retrievePlatformById]);

Expand Down
1 change: 0 additions & 1 deletion src/pages/community-settings/platform/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use client';
import TcPlatform from '../../../components/communitySettings/platform';
import SEO from '../../../components/global/SEO';
import TcBreadcrumbs from '../../../components/shared/TcBreadcrumbs';
Expand Down

0 comments on commit b52c7cf

Please sign in to comment.