default must be a function

This commit is contained in:
Ulf Gebhardt 2021-04-24 13:19:54 +02:00
parent f93367bc9f
commit ca654914f7
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ describe('ReportsTable', () => {
describe('given no reports', () => { describe('given no reports', () => {
beforeEach(() => { beforeEach(() => {
propsData = { ...propsData, reports: [] } propsData = { ...propsData }
wrapper = Wrapper() wrapper = Wrapper()
}) })

View File

@ -41,7 +41,7 @@ export default {
ReportRow, ReportRow,
}, },
props: { props: {
reports: { type: Array, default: [] }, reports: { type: Array, default: () => [] },
}, },
} }
</script> </script>