diff --git a/frontend/components/hours/HoursDayExportDrawer.vue b/frontend/components/hours/HoursDayExportDrawer.vue index aaa1501..dca3799 100644 --- a/frontend/components/hours/HoursDayExportDrawer.vue +++ b/frontend/components/hours/HoursDayExportDrawer.vue @@ -23,6 +23,7 @@ groupClass="w-full mt-2" label="Sites" display-select-all + display-tag /> @@ -49,7 +50,6 @@ const props = defineProps<{ modelValue: boolean sites: Site[] initialDate: string - initialSiteIds: number[] isLoading?: boolean }>() @@ -64,7 +64,7 @@ const drawerOpen = computed({ }) const selectedDate = ref(props.initialDate) -const selectedSites = ref([...props.initialSiteIds]) +const selectedSites = ref([]) const siteOptions = computed(() => props.sites.map((site) => ({ label: site.name, value: site.id })) @@ -80,7 +80,7 @@ watch( (isOpen) => { if (isOpen) { selectedDate.value = props.initialDate - selectedSites.value = [...props.initialSiteIds] + selectedSites.value = [] } } ) diff --git a/frontend/pages/hours.vue b/frontend/pages/hours.vue index b36de7c..5b59120 100644 --- a/frontend/pages/hours.vue +++ b/frontend/pages/hours.vue @@ -16,7 +16,6 @@ v-model="isExportDrawerOpen" :sites="sites" :initial-date="selectedDate" - :initial-site-ids="selectedSiteIds" :is-loading="isExporting" @submit="handleExport" />