mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Fixed homepage sometimes not rendering when not studying
This commit is contained in:
parent
bbffea76a3
commit
97291a85cd
1 changed files with 0 additions and 2 deletions
|
@ -264,7 +264,6 @@ export default function Home() {
|
||||||
useState<StudentStatusListType>([]);
|
useState<StudentStatusListType>([]);
|
||||||
// Student Status List Global
|
// Student Status List Global
|
||||||
const StudentStatusListGlobalQuery = useQuery({
|
const StudentStatusListGlobalQuery = useQuery({
|
||||||
enabled: !studying,
|
|
||||||
queryKey: ["user_status_list_global"],
|
queryKey: ["user_status_list_global"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const data = await GetStudentStatusList();
|
const data = await GetStudentStatusList();
|
||||||
|
@ -323,7 +322,6 @@ export default function Home() {
|
||||||
>([]);
|
>([]);
|
||||||
// Study Group Global List
|
// Study Group Global List
|
||||||
const StudyGroupGlobalQuery = useQuery({
|
const StudyGroupGlobalQuery = useQuery({
|
||||||
enabled: !studying,
|
|
||||||
queryKey: ["study_group_list_global"],
|
queryKey: ["study_group_list_global"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const data = await GetStudyGroupList();
|
const data = await GetStudyGroupList();
|
||||||
|
|
Loading…
Reference in a new issue