Skip to content

Commit ac294b1

Browse files
committed
fix: public 페이지에 대한 접근 허용
1 parent dc7b669 commit ac294b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/frontend/src/features/workspace/model/useWorkspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ export const useRemoveWorkspace = () => {
4242

4343
export const useCurrentWorkspace = () => {
4444
const workspaceId = useWorkspace();
45-
const { data: user, isError, isSuccess } = useGetUser();
45+
const { data: user, isError } = useGetUser();
4646

4747
const snowflakeId = isError ? "null" : (user?.snowflakeId ?? "null");
4848

4949
return useQuery({
5050
queryKey: ["currentWorkspace", workspaceId, snowflakeId],
5151
queryFn: () => getCurrentWorkspace(workspaceId, snowflakeId),
52-
enabled: Boolean(workspaceId) && isSuccess,
52+
enabled: Boolean(workspaceId),
5353
retry: false,
5454
refetchOnWindowFocus: false,
5555
});

0 commit comments

Comments
 (0)