diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 995ae1a..b1bac63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,9 +45,9 @@ jobs: working-directory: frontend run: | npm ci + npm run build:dev npm run lint npm run typecheck - npm run build:dev - name: Run all builds and tests run: | diff --git a/.nvmrc b/.nvmrc index 7da30cb..4a58985 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.13 +18.18 diff --git a/frontend/composables/useModal.ts b/frontend/composables/useModal.ts index 6cc72b0..8cb7351 100644 --- a/frontend/composables/useModal.ts +++ b/frontend/composables/useModal.ts @@ -41,7 +41,7 @@ export const useModal = () => { loadingSet.value.add(loadKey) } const stopLoading = (loadKey: string) => { - return () => loadingSet.value.delete(loadKey) + loadingSet.value.delete(loadKey) } const clearLoading = () => { loadingSet.value.clear() } const withLoading = (fn: () => Promise, opKey: string): Promise => { @@ -64,7 +64,7 @@ export const useModal = () => { startLoading(opKey) onMounted(() => { fn() - stopLoading(opKey)() + stopLoading(opKey) }) } @@ -97,7 +97,6 @@ export const useModal = () => { withLoading, onMountedWithLoading, startLoading, - stopLoading, clearLoading, loading, loadingSet,