Skip to content

Commit b1eca36

Browse files
committed
[FE] fix: guildId가 존재하는 경우만 쿼리 실행 조건 추가 (#74)
1 parent c52b383 commit b1eca36

File tree

1 file changed

+1
-0
lines changed
  • src/frontend/src/components/guild/GuildCategory

1 file changed

+1
-0
lines changed

src/frontend/src/components/guild/GuildCategory/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const GuildCategory = () => {
2525
const { data } = useQuery<GuildResultData>({
2626
queryKey: ['guildInfo', guildId],
2727
queryFn: () => getGuild(guildId),
28+
enabled: !!guildId,
2829
});
2930

3031
const dropdownItems: DropdownItem[] = [

0 commit comments

Comments
 (0)