From 42621d5cfaba4b9256b4811631d102348f52aae8 Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh Date: Mon, 30 Jan 2023 16:54:46 -0500 Subject: [PATCH] RF ref into a computed property --- web/src/views/DandisetLandingView/DandisetLandingView.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/views/DandisetLandingView/DandisetLandingView.vue b/web/src/views/DandisetLandingView/DandisetLandingView.vue index 3ebd5e65a..1c60d5966 100644 --- a/web/src/views/DandisetLandingView/DandisetLandingView.vue +++ b/web/src/views/DandisetLandingView/DandisetLandingView.vue @@ -135,7 +135,10 @@ const store = useDandisetStore(); const currentDandiset = computed(() => store.dandiset); const loading = ref(false); -const dandisetDoesNotExist = ref(false); + +// If loading is finished and currentDandiset is still null, the dandiset doesn't exist. +const dandisetDoesNotExist = computed(() => !currentDandiset.value && !loading.value); + const schema = computed(() => store.schema); const userCanModifyDandiset = computed(() => store.userCanModifyDandiset);