Fix loading behavior on exercise page
This commit is contained in:
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
async function getExercise(exerciseId) {
|
async function getExercise(exerciseId) {
|
||||||
if (!exerciseId) return;
|
if (!exerciseId) return;
|
||||||
isFetching = false;
|
isFetching = true;
|
||||||
isQuestionnaireFetching.update(() => true);
|
isQuestionnaireFetching.update(() => true);
|
||||||
|
|
||||||
const { data } = await supabase
|
const { data } = await supabase
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
console.log('getExercise', exerciseId, $questionnaire);
|
console.log('getExercise', exerciseId, $questionnaire);
|
||||||
|
|
||||||
isQuestionnaireFetching.update(() => false);
|
isQuestionnaireFetching.update(() => false);
|
||||||
isFetching = true;
|
isFetching = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function goBack() {
|
function goBack() {
|
||||||
|
|||||||
Reference in New Issue
Block a user