diff --git a/resources/ts/components/InvoiceTasksComponent.vue b/resources/ts/components/InvoiceTasksComponent.vue index 3cf8eba..cd08d73 100644 --- a/resources/ts/components/InvoiceTasksComponent.vue +++ b/resources/ts/components/InvoiceTasksComponent.vue @@ -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;