this.errors is undefined issue fixed
				
					
				
			& fix typo
This commit is contained in:
		
							
								
								
									
										4
									
								
								resources/assets/js/plugins/error.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								resources/assets/js/plugins/error.js
									
									
									
									
										vendored
									
									
								
							| @@ -17,14 +17,16 @@ export default class Errors { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     get(field) { |     get(field) { | ||||||
|         if (this.errors[field]) { |         if (this.has(field)) { | ||||||
|             return this.errors[field][0]; |             return this.errors[field][0]; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     record(errors) { |     record(errors) { | ||||||
|  |         if (errors instanceof Object) { | ||||||
|             this.errors = errors; |             this.errors = errors; | ||||||
|         } |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     clear(field) { |     clear(field) { | ||||||
|         if (field) { |         if (field) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user