Skip to content

Commit

Permalink
fix: dashboard crashes when visited directly
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadM1998 committed Jul 10, 2024
1 parent 66e5aa9 commit d1975ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/content/dashboard/DashboardFilters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
{ label: 'Systems Architect', value: 'system_arch' },
{ label: 'Technical Support', value: 'technical_support' },
]
// TODO: Remove this when resolved in radix-vue
// Number Field components crashes when opening the page directly as `window` is not defined
const windowAvailable = computed(() => window)
</script>

<template>
Expand Down Expand Up @@ -107,7 +111,7 @@
</div>

<!-- Years of Experience -->
<div>
<div v-if="windowAvailable">
<UiLabel class="font-normal">Years of Experience</UiLabel>

<!-- From -->
Expand Down

0 comments on commit d1975ba

Please sign in to comment.