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);