From fe56ec0f82c6317d4044d8c44f76d44c1aac2856 Mon Sep 17 00:00:00 2001 From: zuies Date: Mon, 11 Dec 2023 11:16:56 +0300 Subject: [PATCH] check id --- src/components/communitySettings/platform/TcPlatform.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/communitySettings/platform/TcPlatform.tsx b/src/components/communitySettings/platform/TcPlatform.tsx index f8c9fe4e..763449f8 100644 --- a/src/components/communitySettings/platform/TcPlatform.tsx +++ b/src/components/communitySettings/platform/TcPlatform.tsx @@ -70,6 +70,7 @@ function TcPlatform({ platformName = 'Discord' }: TcPlatformProps) { }; useEffect(() => { + if (!id) return; fetchPlatform(); }, [id, retrievePlatformById]);