fix(delivery-note): type not required
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-05-02 12:28:17 +02:00
parent 144b99f644
commit 3f07400705
1 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@ const fs = require('fs-extra');
module.exports = {
name: 'delivery-note',
created() {
if (!this.type)
this.type = 'deliveryNote';
},
async serverPrefetch() {
this.client = await this.fetchClient(this.ticketId);
this.ticket = await this.fetchTicket(this.ticketId);
@ -129,7 +133,7 @@ module.exports = {
},
type: {
type: String,
required: true
required: false
}
}
};