Skip to content

Commit

Permalink
RF ref into a computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jan 30, 2023
1 parent e74a1d9 commit 42621d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/views/DandisetLandingView/DandisetLandingView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 42621d5

Please sign in to comment.