Remove unnecessary dialog ref

This commit is contained in:
christian-byrne
2025-01-18 14:55:00 -07:00
parent d6c1036c68
commit a437fe90fc

View File

@@ -3,7 +3,7 @@
</template>
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import ReportIssuePanel from '@/components/dialog/content/error/ReportIssuePanel.vue'
@@ -11,7 +11,6 @@ import { useDialogStore } from '@/stores/dialogStore'
import BaseViewTemplate from '@/views/templates/BaseViewTemplate.vue'
const router = useRouter()
const dialog = ref(null)
const dialogStore = useDialogStore()
onMounted(() => {
@@ -20,9 +19,7 @@ onMounted(() => {
component: ReportIssuePanel,
title: 'Report an issue',
dialogComponentProps: {
onClose: () => {
router.push('/')
}
onClose: () => router.push('/')
},
props: {
errorType: 'desktop',
@@ -35,6 +32,5 @@ onMounted(() => {
]
}
})
dialog.value = useDialogStore().dialogStack[0]
})
</script>