Invoice component fixed task parsing

This commit is contained in:
Jérémy Munsch 2022-08-30 09:50:25 +02:00
parent 40491b451f
commit a33132e1d4
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -198,6 +198,10 @@ export default defineComponent({
(packageModel: LaravelModel) => packageModel.id === task.package
) ?? null;
}
if (task.type !== this.getTaskTypeEnum("forfait").value) {
task.package = null;
task.packageModel = null;
}
});
this.tasks = tasks;