Get rid of typescript errors
This commit is contained in:
@@ -36,7 +36,7 @@ onMounted(async () => {
|
||||
const invoiceBeforeThisYearResponse = await axios.get('/api/invoices/summaryBeforeThisYear')
|
||||
invoicesData.value = invoicesData.value.concat(invoiceBeforeThisYearResponse.data as Invoice[])
|
||||
invoicesData.value = invoicesData.value.sort(
|
||||
(a, b) => new Date(a.invoiceDate) - new Date(b.invoiceDate)
|
||||
(a, b) => new Date(a.invoiceDate).getTime() - new Date(b.invoiceDate).getTime()
|
||||
)
|
||||
} catch (error) {
|
||||
console.error('Fehler beim Laden der Daten:', error)
|
||||
|
||||
Reference in New Issue
Block a user