Fixed homepage sometimes not rendering when not studying

This commit is contained in:
Keannu Bernasol 2023-09-30 18:31:26 +08:00
parent bbffea76a3
commit 97291a85cd

View file

@ -264,7 +264,6 @@ export default function Home() {
useState<StudentStatusListType>([]);
// Student Status List Global
const StudentStatusListGlobalQuery = useQuery({
enabled: !studying,
queryKey: ["user_status_list_global"],
queryFn: async () => {
const data = await GetStudentStatusList();
@ -323,7 +322,6 @@ export default function Home() {
>([]);
// Study Group Global List
const StudyGroupGlobalQuery = useQuery({
enabled: !studying,
queryKey: ["study_group_list_global"],
queryFn: async () => {
const data = await GetStudyGroupList();