mirror of
https://github.com/samkaraca/lazuri-doviguram.git
synced 2026-04-29 17:59:51 +00:00
Fix the bug at the first opening of the theme page with an active activity.
This commit is contained in:
parent
8c9e338f51
commit
6fd59c712b
@ -61,6 +61,7 @@ export function useBaseViewModel(theme: ITheme): BaseViewModel {
|
||||
if (activityId === null) {
|
||||
delete query["alistirma"];
|
||||
} else {
|
||||
query["ders"] = ((activeLesson as number) + 1).toString();
|
||||
query["alistirma"] = activityId;
|
||||
}
|
||||
|
||||
@ -92,7 +93,7 @@ export function useBaseViewModel(theme: ITheme): BaseViewModel {
|
||||
openActivity(activeActivityId, activity);
|
||||
}
|
||||
}
|
||||
}, []);
|
||||
}, [router.isReady]);
|
||||
|
||||
const getLocalExerciseDatas = () => {
|
||||
if (activeLesson === null) return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user