mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	fix: Custom optional Date field issue
This commit is contained in:
		| @ -72,11 +72,9 @@ export default { | ||||
|       deep: true, | ||||
|     }, | ||||
|   }, | ||||
|   mounted() { | ||||
|   created() { | ||||
|     this.date = | ||||
|       this.field && this.field.defaultAnswer | ||||
|         ? this.field.defaultAnswer | ||||
|         : new Date() | ||||
|       this.field && this.field.defaultAnswer && this.field.defaultAnswer | ||||
|     this.placeholder = | ||||
|       this.field && this.field.placeholder ? this.field.placeholder : '' | ||||
|   }, | ||||
|  | ||||
| @ -460,7 +460,7 @@ export default { | ||||
|       taxPerItem: null, | ||||
|       discountPerItem: null, | ||||
|       isLoadingInvoice: false, | ||||
|       isLoadingData: false, | ||||
|       isLoadingData: true, | ||||
|       isLoading: false, | ||||
|       maxDiscount: 0, | ||||
|       invoicePrefix: null, | ||||
| @ -832,10 +832,9 @@ export default { | ||||
|  | ||||
|               if (res2.data) { | ||||
|                 let customFields = res2.data.customFields.data | ||||
|                 this.setEditCustomFields(fields, customFields) | ||||
|                 await this.setEditCustomFields(fields, customFields) | ||||
|               } | ||||
|             } | ||||
|  | ||||
|             this.isLoadingInvoice = false | ||||
|           }) | ||||
|           .catch((error) => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user